dhclient doesn't tell the router the computer's hostname by default

Bug #69207 reported by Cyphase
2
Affects Status Importance Assigned to Milestone
dhcp3 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: dhcp3-client

When you connect to a router with Ubuntu, by default it doesn't tell the router the computer's hostname, so you're forced to use the IP to access it. Meaning, if your computer is called Sam, you won't be able to access "Sam" from any other computer. You instead have to use 192.168.0.5 or whatever it is in your case.

A quick fix I found is to open

     /etc/dhcp3/dhclient.conf

uncomment the line that says

     #send host-name "HOSTNAME";

and change HOSTNAME into whatever you want. It's probably a good idea to make it the same as your computer's name :).

One possible solution is to have the installer configure dhclient.conf correctly, and then to change it whenever you change your hostname. Maybe dhclient.conf can reference /etc/hostname ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.