[CentOS] How to make nodes in my local LAN see each other's names

Wed Nov 30 15:00:47 UTC 2011
Lamar Owen <lowen at pari.edu>

On Wednesday, November 30, 2011 08:54:04 AM Timothy Madden wrote:
> Is there a way to get the name service switch to use wins, while the DNS 
> configuration is handled by DHCP client ?

Yes, there is (or at least should be).  While I know some will object strongly to doing it this way, here's how you might be able to do it:

1.) Follow http://bensbits.com/blog/2006/02/02/wins_name_resolution_for_linux/
2.) If not using NetworkManager, set PEERDNS=no in the appropriate /etc/sysconfig/network-scripts/ifcfg-ethX file
3.) If using NetworkManager, or using the GUI config tools, make sure the 'Automatically Obtain DNS Information from provider' is *not* checked
4.) Set up /etc/resolv.conf to point DNS to your router (since that will not happen automatically) or set up the DNS servers in the GUI.

Now, I say 'might' simply because I've not personally tried it, since I have a local DNS server set up here and that would not match your particular setup, so even if I got it working you might not, since I do have a DNS server on the LAN.

Since you're using these systems as desktops, and since you didn't specify (at least not in this thread; if you did in another thread I apologize) which CentOS you are using, do note that CentOS 5 and CentOS 6 do things quite a bit differently.  So YMMV.

And please let us know how it turns out, especially for the benefit of those who might be searching this thread a year or two from now with your exact question....  the second most annoying thing about typical e-mail list threads is that the OP often doesn't come back with what the solution was.... and to those OP's who do come back with a 'SOLVED' tag in the subject line (or just in the body of the e-mail) and describe what actually fixed their problem, I thank you.  (I've already in another thread told my opinion on what the most annoying thing about typical e-mail list threads is, so I'll not repeat that here).