[Samba] Samba 3.5.8 nmbd problems

Florian Götz f.goetz at hs-mannheim.de
Wed Sep 19 13:14:41 MDT 2012


Hi all,

I got a problem with the name resolves with Samba 3.6.8 installed on a
SLES11 x64 machine.
The machine works as a domain master with the following configuration:


--snip--

[global]
workgroup = SAMBA
netbios name = PDC
server string = Sambaserver %v
interfaces = bond0, lo
socket options = TCP_NODELAY
bind interfaces only = yes
os level = 70
preferred master = yes
domain master = yes
domain logons = yes
local master = yes
wins support = yes
name resolve order = wins lmhosts hosts bcast
max protocol = SMB2

-- snap ---


There are multiple clients (WinXP and Win7 Workstations) in different
subnets. The samba server has the IP 192.168.1.79, the workstations are
in subnet 192.168.1.0/24 and 192.168.7.0/24.

If I try to resolve a NetBios name (locally logged in at the
Sambaserver), nmblookup always tries to resolve via broadcasts.


[root at samba3:/var/lib/samba]## nmblookup PC05
added interface bond0 ip=192.168.1.79 bcast=192.168.1.255
netmask=255.255.255.0
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface lo ip=127.0.0.2 bcast=127.255.255.255 netmask=255.0.0.0
Socket opened.
querying PC05 on 192.168.1.255
querying PC05 on 127.255.255.255
querying PC05 on 127.255.255.255
name_query failed to find name PC05


If I use the the -R -U option to query the nmb directly I get a correct
answer:

[root at samba3:/var/lib/samba]## nmblookup -R -U 192.168.1.79 PC05
added interface bond0 ip=192.168.1.79 bcast=192.168.1.255
netmask=255.255.255.0
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface lo ip=127.0.0.2 bcast=127.255.255.255 netmask=255.0.0.0
Socket opened.
querying PC05 on 192.168.1.79
Got a positive name query response from 192.168.1.79 ( 192.168.7.5 )
192.168.7.5 PC05<00>


Shouldn´t the broadcast query be answered by the nmbd? Or am I wrong?


Regards
Florian Götz





More information about the samba mailing list