Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-10-2009, 05:52 PM   #1
LQ Newbie
Registered: Oct 2006
Posts: 4

Rep: Reputation: 0
Display hostname?

Hi all

I just installed ubuntu 6.06 server on an old laptop of mine. I installed the server because I wanted to learn the shell and I know if I installed normal Ubuntu then I would be tempted by the GUI this way I won’t be.

I called my computer linuxbox but when I login to my router and look at the DHCP Client list where the server is there is no name. I remember when I had Ubuntu with GUI I had to check a box to allow it to display the name but I do not know how to do it on terminal. Can someone please point me in the right direction?

The main reason is that if my bro looks at the Client list and see one with no name he will think someone is using our network and block it so that would inconvenience me.

Many thanks

Old 03-10-2009, 06:33 PM   #2
Registered: Apr 2007
Location: 中国上海
Distribution: openSUSE 11.3
Posts: 371

Rep: Reputation: 40
The 'hostname' command may be useful to you.
It's the command to change hostnames and stuff.
Old 03-11-2009, 03:12 PM   #3
LQ Newbie
Registered: Oct 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the reply. I looked up the command hostname but I couldn't find any arguments or anything that would make the hostname visible to the network. Have I overlooked something?

Many thanks

Old 03-11-2009, 03:29 PM   #4
Registered: Feb 2006
Distribution: Debian Sid
Posts: 693

Rep: Reputation: 272Reputation: 272Reputation: 272
Take a look at the man page for "dhclient.conf".

send host-name "linuxbox";
Old 03-11-2009, 03:50 PM   #5
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Blog Entries: 1

Rep: Reputation: 51
Try editing /etc/hosts
Old 03-11-2009, 04:31 PM   #6
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,240
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
I think norobro has what you are looking for, you want the client to send your hostname to the dhcp server.

If his suggestion does not work for you.. Check the bottom of my blog post on the Linux hostname.. the Dynamic DNS section may help you. Since you are running Ubuntu, try the Debian suggestion (Ubuntu is based on Debian)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hostname issue - showing "localhost" instead of actual hostname. ryes31 Linux - Server 9 12-12-2012 09:19 PM
hostname -f error hostname :unknownhost prnkho Linux - Newbie 1 11-26-2008 10:12 AM
Change the Unix prompt to display hostname and home directory kennynoah AIX 3 07-17-2008 07:20 AM
Change background color of hostname display componat of XDM tmillard Linux - Software 0 06-26-2004 05:32 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 06:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration