Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-03-2004, 08:10 AM   #1
Registered: May 2004
Posts: 32

Rep: Reputation: 15
Question setting the hostname of the machine not working??

Hi everyone.

I am having a strange problem, I am trying to set the hostname of my server from the terminal after leaving an xwindows session. I tried during the gnome (using redhat 9 by the way) to set it from a command line using hostname command but it didn't work. I then init 3'ed to a terminal and directly after I set the hostname command it reflects the new setting, but after I reset the server it goes back to the old name. I am obviously logged in as root while doing this, but to no avail.

Any help would be greatly appreciated.
Old 06-03-2004, 08:32 AM   #2
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Is your hostname in /etc/hostname?

Old 06-03-2004, 08:36 AM   #3
Registered: May 2004
Posts: 32

Original Poster
Rep: Reputation: 15

Thanks for the quick response. If you mean hostname.conf (because I can't find hostname), no it isn't. But I thought that this file was where you put other machines hostnames, not where you configured the local machines fqdn?And if this is the place where you input the machines name, is it acceptable to put in the entire fqdn.


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
Setting Hostname abhijeetudas Linux - Networking 1 06-04-2005 08:10 AM
How do i use a hostname given by No-IP as my machine name? z-vet Linux - Networking 3 10-22-2004 09:06 PM
Getting hostname of remote machine with gethostbyaddr() thomjakub Linux - Networking 4 03-06-2004 10:08 AM
setting hostname akamol Linux - General 2 07-03-2003 04:48 AM
Can't ping linux machine by hostname jdklein1975 Linux - Networking 3 02-26-2003 02:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 AM.

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