As you know, I’ve been making a home network. The task itself isn’t too complicated, but there have been little annoying things here and there.

For some reason, the hostnames of about every computer were being forgotten by my 2wire router. This is bad because I named my computers for a reason! I didn’t want to memorize IP addresses. The IPs weren’t hard to remember. Its just that memorizing an arbitrary number to a computer that does specific things is hard.

I couldn’t ssh into the servers easily, because I’d have to look up the IP each time rather than just typing in the hostname.

It was a simple fix!

You just have to edit dhclient.conf

sudo vim /etc/dhcp3/dhclient.conf

Insert this line

send host-name "yourhostname";

Restart the DHCP daemon
I used this command for Hardy Heron

sudo /etc/init.d/dhcdbd restart

I used this command for Jaunty Jackalope

sudo /etc/init.d/dbus restart

Your computer should now tell your router its hostname!

Related posts: