LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-19-2003, 11:07 AM   #1
spchehe
LQ Newbie
 
Registered: Jul 2003
Posts: 26

Rep: Reputation: 15
hostname changes after setup internet


Hi

I've just installed RH 9.0 and setup my cable modem, but after I restarted the computer and login in as root, it said "

Could not look up internet address for x1-6-00-08-74-c4-xx. This will prevent GNOME from operating correctly. It may be possible to correct the problem by adding x1-6-00-08-74-c4-xx to file /etc/hosts."

And after that my terminal host name changed to root@x1-6-00-08-74-c4-xx. Can anyone tell me how to change it to root@Red Hat Linux?

Thanks
 
Old 08-19-2003, 12:16 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
To give your system a hostname,
add it to the HOSTNAME line in /etc/sysconfig/network

You will need to restart your network and logout for the changes to take effect.
 
Old 08-19-2003, 12:44 PM   #3
spchehe
LQ Newbie
 
Registered: Jul 2003
Posts: 26

Original Poster
Rep: Reputation: 15
still not working

Hi

Thanks for the quick reply, but after I changed it to:

NETWORKING=yes
HOSTNAME=localhost.local.domain Red Hat Linux

and restarted the machine the message(Could not look up internet address...) appeared again and in the terminal it still displayed
root@x1-6-00-08-74-c4-xx root
 
Old 08-19-2003, 12:56 PM   #4
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
The line in /etc/sysconfig/network should look like this:
Code:
HOSTNAME=Red_Hat_Linux
Then in /etc/hosts, append the name to the end of the first line like this:
Code:
127.0.0.1       localhost.localdomain   localhost Red_Hat_Linux
 
Old 08-19-2003, 02:11 PM   #5
spchehe
LQ Newbie
 
Registered: Jul 2003
Posts: 26

Original Poster
Rep: Reputation: 15
it worked, thanks!
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hostname, fqdn, /etc/hosts setup [GOD]Anck Slackware 9 07-20-2010 04:51 PM
simple mail setup for hostname quickk Linux - Newbie 6 11-02-2004 01:13 AM
how to setup a hostname in linux tejpatil Linux - Newbie 4 10-03-2004 04:53 PM
hostname setup for router RoughEdge Linux - Newbie 5 04-29-2004 09:16 AM
Qmail 1.03 setup behind router, hostname question ews2001 Red Hat 0 10-29-2003 04:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:08 PM.

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