I recently moved my home server OS to Debian from Ubuntu. The hardware is the same, so during the install, it was offered the previous hostname, which I accepted. Internally, DNS and DHCP are served up by dnsmasq from dd-wrt running on my WRT54G. None of the settings have changed on the WRT54G, but now the server cannot be reached by name.
LAN domain: meta.verse
blacksun:~ $ sudo uname -n
blacksun:~ $ sudo hostname -a
blacksun:~ $ sudo hostname -s
blacksun:~ $ sudo hostname -d
blacksun:~ $ sudo hostname -f
blacksun:~ $ sudo hostname --fqdn
blacksun:~ $ cat /etc/hostname
I can reach the box just fine via its IP address, but if contact is attempted via the hostname, then nothing happens:
reason:~$ ping blacksun.meta.verse
ping: unknown host blacksun.meta.verse
There are no firewall rules, everything is ACCEPT, and the box knows its own hostname. I did try changing the hostname on the server, but still could not reach it without using the IP address. Not sure what the cause could be.