Bug 3067 - libnss_wins.so won't find hosts through broadcast
Summary: libnss_wins.so won't find hosts through broadcast
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Client Tools (show other bugs)
Version: 3.0.20
Hardware: x86 Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-07 08:05 UTC by Terry
Modified: 2017-07-16 20:56 UTC (History)
1 user (show)

See Also:


Attachments

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?
Comment 1 Andrew Bartlett 2017-07-16 20:54:30 UTC
(cleaning up old bugs)

This is by design.  WINS is not a broadcast protocol, it is point-to-point like DNS.

Sorry,