Bug 3067 - libnss_wins.so won't find hosts through broadcast
libnss_wins.so won't find hosts through broadcast
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: Client Tools
x86 Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2005-09-07 08:05 UTC by Terry
Modified: 2005-09-07 08:05 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Terry 2005-09-07 08:05:58 UTC
i have put wins in nsswitch.conf as last option in 'hosts' directive.
i have no wins server defined nor samba is working as one.
when i use net tools e.g. ping it wont find hosts in my network.

tcpdump shows there are no outgoing packets during the query.
strace shows that libnss_wins.so gets open and read:
open("/usr/lib/libnss_wins.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\206\1"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=994796, ...}) = 0

nmblookup'ing the queried host works fine.

in smb.conf i have name resolve order = wins lmhosts bcast host

am i doing anything wrong here?