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
Hostname: blacksun
Code:
blacksun:~ $ sudo uname -n
blacksun
blacksun:~ $ sudo hostname -a
blacksun
blacksun:~ $ sudo hostname -s
blacksun
blacksun:~ $ sudo hostname -d
meta.verse
blacksun:~ $ sudo hostname -f
blacksun.meta.verse
blacksun:~ $ sudo hostname --fqdn
blacksun.meta.verse
blacksun:~ $ cat /etc/hostname
blacksun
I can reach the box just fine via its IP address, but if contact is attempted via the hostname, then nothing happens:
Code:
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.