Hostname does not persist on LAN
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 Code:
reason:~$ ping blacksun.meta.verse |
Either you have an entry in your /etc/hosts with the IP for blacksun.meta.verse or your DNS knows how to resolve it. Otherwise, you will get the unknown host error.
So the solution is either edit your hosts file or configure your DNS (if you are the owner). |
Yup, DNS is served by dnsmasq on the WRT54G. All other hosts on the network resolve fine, just not this one. The /etc/hosts file looks alright to me:
Code:
blacksun:~ $ head /etc/hosts Code:
reason:~$ head /etc/hosts |
Well I rebooted the WRT54G and now it works alright. Worst solution ever.
|
All times are GMT -5. The time now is 12:03 AM. |