I have a LAN setup with a bunch of windows and linux boxes. The LAN is built on top of the AT&T DSL Router. I don't have any type of DNS Server running. All the windows machines can identify themselves by machine name over the network. Even a Linux NAS box can also be accessible by machine name. However, I recently built a CentOS linux box and I want it to be accessible by machine name. I've tried setting the hostname but it does not work. Can someone help me with this problem?
|
feedback
|
migrated from stackoverflow.com Jun 6 '11 at 20:34
This question came from our site for professional and enthusiast programmers.
|
I think, there are two options:
Maybe, the AT&T box also has some local DNS features? I don't know that box, though. | |||
feedback
|
|
windows hosts are accessable by name because they can be found by their netbios name http://en.wikipedia.org/wiki/NetBIOS For your linux box you can:
| |||
|
feedback
|
|
If you run Samba on the Linux box, you should be able to access the Linux box from the Windows boxes, by using the Linux box's hostname. (There is a lot more to it than that, but that's the simplest solution) | |||
|
feedback
|
|
I'm going to assume you're using DHCP, and that the clients are sending their hostname to the DHCP server, which is updating a local DNS server (try CentOS5 does not, AFAIK, send the hostname over DHCP by default. Add:
to /etc/sysconfig/ifcfg-eth0. If it's a static IP, see the hosts file, dnsmasq, BIND, or some Windows-based DNS server. Caveat: your router is probably functioning as a DNS server, so you'd need to make some client configuration changes if you set up a local DNS server in order to have them look at it first. | |||
feedback
|