Can ping Ubuntu hosts but not Debian hosts by hostnames
I have my router running dd-wrt doing dnsmasq for dns resolution.
I have two Ubuntu hosts and three Debian hosts. All the hosts can ping each other by IP address. All the hosts can ping the Ubuntu boxes by hostname. No one (except the machine itself) can ping Debian hosts via hostnames. I also have a box running Crux that I can't ping by hostname. nslookup fails when trying ot find the Debian boxes. Does anyone know why this could be? Thanks! |
the debian boxes presumably aren't providing their hostname in their dhcp request, whereas the ubuntu ones are.
Personally I would suggest not using this functionality in the first place. Configure dnsmasq to serve preconfigured data based on the clients MAC instead. |
Quote:
I would prefer to use this functionality, because they're all VMs that get created and deleted frequently in my lab environment. |
I don't specifically know on debian. It depends what dhcp client it uses. I'd check which each system uses (dhcpcd, dhclient, pump etc...) and compare their respective config files. there's usually a flag that can be added to pass the data.
|
I've confirmed on my fresh install netbook, with Ubuntu 10.10, that this does pass the hostname to dnsmasq (which I don't usually use) running on my dd-wrt based router. So why does Debian not do this? I don't have a debian install to see. But what I can provide is the /etc/dhcp3/dhclient.conf from that machine for the OP to compare, or use as a config substitute to see if it might work (make a backup before substituting).
http://phil.ipal.org/lq/dhclient.conf Code:
# Configuration file for /sbin/dhclient, which is included in Debian's |
Uncommenting this line:
Code:
send host-name "<hostname>"; |
You can mark this thread SOLVED with an action in the Thread Tools drop down.
|
All times are GMT -5. The time now is 07:15 AM. |