Ryan Tsai wrote:
Hi all,
I'm having this problem that I'm unable to using wins for netbios name
resolution with /etc/nsswitch.conf. Whenever I try to ping a hosts using
its netbios name it almost instantly returns unknown host, putting wins
in front of file and dns or just have wins by itself does not seem to
help either, firewalls are disabled on all hosts. Nmbd and smbd is
running, though probably not neccesary.
smb.conf is setup correctly, workgroup is correct, tried either using
Samba itself as the wins server or the actual Win2003 wins server. Name
resolve order in smb.conf is "wins lmhosts bcast dns", if its relevant.
Strange thing is this works fine on my other 2 boxes on the LAN, one
running Slackware and one running FC2, all I had to do was add "wins" to
the hosts resolution order in /etc/nsswitch.conf.
/lib/libnss_wins.so does exists, also tried recompiling Samba and glibc,
strace ping shows /lib/libnss_wins.so.2 does get loaded.
Currently running Gentoo (~x86) on this box with Samba-3.0.6-r4 and
Glibc-2.3.4.20040808, 2.6.8.1-ck6 kernel, glibc compiled with
linux26-headers-2.6.8.1.
I'm out of ideas, can anyone please advise (besides using /etc/hosts,
which is the last resort)? I appreciate any help.
Ryan
Do you have a "wins = xxx.xxx.xxx.xxx" entry in smb.conf?
(working and non-working system)
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html