Fix hostname “Unknown” in router February 6, 2006Posted by Carthik in snippets, ubuntu.
I have a D-link router, and have three ubuntu boxes at home. When I got the router management page and look at the DHCP clients that are connected to the router, I see either “unknown” or ” ” as the name for the Ubuntu boxes. Managing these becomes a pain, as i have to resort to finding out the MAC address to do this.
The WinXP boxes have their designated names.
The hostname for the Ubuntu boxes are set, and yet the router recognizes them as “unknown” or ” “.
I fixed this problem by editing the
/etc/dhcp3/dhclient.conf file to uncomment the following line and editing it as follows:
send host-name "gabriel"