ping debian hostname

view full story

http://www.linuxforums.org – Hi all, I'm new here, so apologies if this has already been answered, but I have searched with no joy. We have some debian 5 based machines, which I would like to move from static to dhcp addressing. This is because they will be moved to different locations, where routers may vary etc. I have set a hostname (/bin/hostname), but when I try to ping that hostname, it says unknown host. If i try to ping hostname.local it works, but only for that machine. I need it to be reach able by the other machines. The only cure I've found only was to enter the IP into the hosts file, but due to me needing dhcp, this isnt ideal. Can anyone shed any light onto this? below are my network configs. "/etc/network/interfaces" Quote: auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp hostname test "/etc/hosts" Quote: localhost.localdomain localhost "/etc/resolv.conf" Quote: nameserver nameserver # have also tried this with router IP (HowTos)