Fix hostname “Unknown” in router February 6, 2006
Posted by Carthik in snippets, ubuntu.trackback
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"
Excelent tip.
Thanks!
Thank you, I’ll try it.
Amen!
This actually fixed my ADS system that I have setup at the office. It wasn’t reporting a valid anme, so the DNS server would assign it an arbitrary one.
When I found this, I used the tip, and the DNS now assigns it the name requested.
I’ve been wondering this for a while. Thanks!
This has been a pain in my ass for over a year. Thanks very much.
Scorage! A huge help.. thanks..
nice! thx a lot!
that was a hit and SCORE with “ubuntu hostname” on google
*victory dance*
Amazing, how sorting out little details like these brings contentment to one’s life.
Thanks!
+1 karma
Dude, thank you!
Many thanks for this tip. I’ve only just installed Xubuntu after using Mandrake/Mandriva for three years, which does this sort of thing a little bit different, so was wondering how to fix this. Now looking at it, it seems so obvious. Thanks for resolving it.
Thanks! That gives me a Host Name on my
router. But my Domain Name still shows up
as “unknown”. Any magic for that???
At first it did not work for me, but after is restarted the computer it worked. Thanks
Fantastic.. nice little tip.
was having a problem getting my slug to broadcast to the network. it’s all good now. thanks so much!
Hi I’m having same problem,if i change my hostname in all afiles.but after rebooting it’s taking some other hostname. could u plz help me on this
Thank you, I’ll try it.
I’ve been wondering this for a while. Thanks!
Fantastic goods from you, man. I have understand your stuff previous to and you’re just extremely great. I really like what you have acquired here, really like what you are saying and the way in which you say it. You make it enjoyable and you still care for to keep it sensible. I can not wait to read much more from you. This is really a terrific web site.
How about if its a Static IP?
I have a static ip, what is the solution?