jump to navigation

Fix hostname “Unknown” in router February 6, 2006

Posted 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"


1. kowal - February 7, 2006

Excelent tip.


2. Gri Msb - February 7, 2006

Thank you, I’ll try it.

3. Chuck - February 8, 2006


4. Dragonfyre13 - February 9, 2006

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.

5. Justin - February 9, 2006

I’ve been wondering this for a while. Thanks!

6. jimbo - April 5, 2006

This has been a pain in my ass for over a year. Thanks very much.

7. Bubba - June 29, 2006

Scorage! A huge help.. thanks..

8. myself - July 17, 2006

nice! thx a lot!
that was a hit and SCORE with “ubuntu hostname” on google

9. Varn - August 6, 2006

*victory dance*

Amazing, how sorting out little details like these brings contentment to one’s life.


+1 karma

10. Noname - August 17, 2006

Dude, thank you!

11. Gort - October 23, 2006

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.

12. Swampy - November 9, 2006

Thanks! That gives me a Host Name on my
router. But my Domain Name still shows up
as “unknown”. Any magic for that???

13. toffe - March 29, 2007

At first it did not work for me, but after is restarted the computer it worked. Thanks

14. Stephen - April 28, 2007

Fantastic.. nice little tip.

15. john - February 16, 2008

was having a problem getting my slug to broadcast to the network. it’s all good now. thanks so much!

16. jagadish - February 27, 2009

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

17. porno sikiş - September 27, 2010

Thank you, I’ll try it.

18. sex sikiş - September 28, 2010

I’ve been wondering this for a while. Thanks!

19. mannequin heads with hair wholesale - August 16, 2011

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.

20. Anthony Ruiz (@tonytech) - February 20, 2015

How about if its a Static IP?

21. csaga - September 1, 2015

I have a static ip, what is the solution?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: