LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-20-2005, 10:06 PM   #1
MichaelD
LQ Newbie
 
Registered: May 2005
Location: Newcastle upon Tyne, UK
Distribution: Fedora Core 2
Posts: 23

Rep: Reputation: 15
Help setting host name please?


Hi

I've tried loads of different things, searched Google and other forums but nothing seems to work. Everytime I log in, I'm faced with the same thing:

Quote:
could not look up internet address for x1-6-00-02-e3-0b-39-3f This may prevent GNOME from operating correctly.....
I've tried opening a terminal and typing su to go to root, then typing hostname localhost. It changes if I close then reopen the terminal, but when I log out, it goes back to how it was.

I've changed my hosts file in /etc/hosts to read:

127.0.0.1 localhost@locaoldomain localhost

I've tried 127.0.0.1 x1-6-00-02-e3-0b-39-3f localhost

I'm really stuck now.

Could someone please tell me how to set it up please?

I'm using Fedora Core 2 and have also tried adding it to the network setup. It doesn't even register there. lol

I do have my own domain names registered and they point to my IP, but I'm happy enough to have it say localhost at the bottom of the login screen rather than x1-6-00-02-e3-0b-39-3f

Many thanks and sorry about this. I know it's probably sometjhing that's been asked time and time again.
 
Old 05-20-2005, 11:33 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
Here's what my FC3 /etc/hosts looks like....
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1	localhost.localdomain	localhost
192.168.0.5	sony.mydomain.com	sony
and here is the /etc/sysconfig/network
Code:
NETWORKING=yes
HOSTNAME=sony.mydomain.com
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a virtual host zupidupi Linux - Networking 2 01-30-2005 09:58 AM
Setting the Host name xailer Linux - Newbie 9 11-18-2003 09:35 PM
setting up telnet host leroy27336 Linux - Networking 2 11-12-2003 03:13 PM
Setting up host in Terminal? CauSTiC Linux - General 6 10-06-2002 08:54 AM
Setting up host in Terminal? CauSTiC Linux - Newbie 3 10-06-2002 07:12 AM


All times are GMT -5. The time now is 08:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration