Simple (not) question.
How can I get linux to do wins address lookups?
I see I can set samba up as a wins client, but this doesn't seem to work.
What I want to be able to do is "ping <machine name>" and receive a
response; the machines names being retrived from a wins server.
So far, the only way I know of doing this is recompiling nsswitch, and end
up with the libnss_wins.so library being available for use. Then all one has
to do is add "wins" to the "hosts: " line in /etc/nsswitch.conf. I'd perfer
not to do this... for various reasons.
Anyone have a nicer way of doing it? All I want really is not to have to
hard code the IP address of the linux machine anywhere on itself. At the
moment I find I have to have an entry for itself in /etc/hosts for samba to
start, otherwise samba reports:
Get_Hostbyname: Unknown host blah.domainname.com
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!