[Dnsmasq-discuss] Problems with Samba shares and XP clients

B. Cook bcook at poughkeepsieschools.org
Mon Aug 4 12:17:01 BST 2008


On Aug 3, 2008, at 12:15 PM, Cristiano Paris wrote:

> On Sun, Aug 3, 2008 at 2:06 PM, B. Cook  
> <bcook at poughkeepsieschools.org> wrote:
>>
>> On Aug 2, 2008, at 5:00 PM, Cristiano Paris wrote:
>>
>>> On Sat, Aug 2, 2008 at 6:30 PM, richardvoigt at gmail.com
>>> <richardvoigt at gmail.com> wrote:
>>>>
>>>> I don't remember for sure, but I don't think you need netbios for  
>>>> cifs to
>>>> work.
>>>>
>>>> Try "\\ip.address\share" ?
>>>>
>>>> If that doesn't work then I don't think the problem is with  
>>>> dnsmasq.
>>>
>>> It doesn't work, niether.
>>>
>>>> If
>>>> that does work, you may have to mess with dns settings on both  
>>>> client and
>>>> server until "ping servername" works, then "\\servername\share"  
>>>> should
>>>> also
>>>> work.
>>>
>>> Of course, ping works. Thank you.
>>>
>>> Cristiano
>>>
>> You wouldn't want to share you config would you?
>>
>> dnsmasq and/or samba..
>> _______________________________________________
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss at lists.thekelleys.org.uk
>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>>
>
> dnsmasq.conf:
>
> resolv-file=/etc/dns.resolv.conf
> local=/internal.theshire.org/
> no-hosts
> addn-hosts=/etc/dns.hosts
> domain=internal.theshire.org
> dhcp-range=10.7.0.3,10.7.0.5,255.255.255.0,12h
> dhcp-host=00:xx:xx:xx:xx:xx,xx.xx.xx.xx,tuckburrow,infinite
> dhcp-option=44,10.7.0.2
> dhcp-option=45,10.7.0.2
> dhcp-option=46,8
> dhcp-option=47
>
> smb.conf:
>
> [global]
>   workgroup = THESHIRE
>   server string = The Shire internal server
>   security = user
>   load printers = yes
>   log file = /var/log/samba/%m.log
>   max log size = 50
>   wins support = yes
>   name resolve order = wins lmhosts host bcast
>   unix extensions = no
>   socket options = TCP_NODELAY SO_RCVBUF=524288 SO_SNDBUF=524288
> [homes]
>   comment = Home Directories
>   browseable = no
>   writable = yes
> [printers]
>   comment = All Printers
>   path = /var/spool/samba
>   browseable = no
>   guest ok = no
>   writable = no
>   printable = yes
>
> Cristiano

For what its worth..

1 B-node: Broadcast - no WINS
2 P-node: Peer - WINS only
4 M-node: Mixed - broadcast, then WINS
8 H-node: Hybrid - WINS, then broadcast

I believe that to be a correct and complete list for dhcp-option=46  
(46 netbios-nodetype)

I use 2, because I use wins.

You might set your log level up a bit in samba and look in your  
log.nmbd and see if the hosts are actually registering with wins, is  
your samba server at 10.7.0.2?

This is for my samba server @home..

# Global parameters
[global]
         workgroup = WORKGROUP
         netbios name = THINGONE
         server string = [SAMBA]
         log file = /var/log/samba/log.%m
         name resolve order = wins bcast host lmhosts
         time server = Yes
         socket options = TCP_NODELAY IPTOS_LOWDELAY IPTOS_THROUGHPUT  
SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
         logon script =
         logon path =
         logon home =
         domain logons = Yes
         os level = 65
         preferred master = Yes
         local master = Yes
         domain master = Yes
         dns proxy = No
         wins support = Yes
         read only = No
         writeable = Yes
         case sensitive = No
         veto oplock files = /*.doc/*.xls/*.mdb/
         security = user
         load printers = yes
         dns proxy = no
         load printers = yes
         printing = cups
         printcap name = cups

and some dnsmasq:

bind-interfaces
bogus-priv
cache-size=1024
dhcp-authoritative
dhcp-host=00:01:e6:4b:e3:2e,172.16.64.10,jetdirect
dhcp-host=00:0d:93:ed:75:dc,,iancook
dhcp-host=00:12:3f:7e:b8:10,172.16.64.19,cswebdevel
dhcp-host=00:17:f2:c7:c4:4a,172.16.64.11,imac
dhcp-host=00:19:e3:d3:fa:a9,,macbookpro
dhcp-host=00:c0:f4:f5:e9:34,172.16.64.1,gw
dhcp-leasefile=/var/db/dnsmasq.leases
dhcp-option=option:dns-server,0.0.0.0           # DNS
dhcp-option=option:domain-name,at.home     # Domain
dhcp-option=option:netbios-dd,0.0.0.0     # netbios datagram  
distribution server
dhcp-option=option:netbios-nodetype,2           # netbios node type
dhcp-option=option:netbios-ns,0.0.0.0     # set netbios-over-TCP/IP  
nameserver(s) aka WINS server(s)
dhcp-option=option:netbios-scope             # empty netbios scope.
dhcp-option=option:ntp-server,172.16.64.1       # NTP
dhcp-option=option:router,172.16.64.1   # Gateway
dhcp-option=vendor:MSFT,2,1i
dhcp-range=172.16.64.11,172.16.64.25,255.255.255.224,1h
domain-needed
domain=at.home
except-interface=lo0
filterwin2k
group=nobody
interface=fxp0
log-dhcp
log-facility=/var/log/dnsmasq.log
no-negcache

Again all works great..

(Running FreeBSD 7 on the dnsmasq and samba machines)



More information about the Dnsmasq-discuss mailing list