LinuxQuestions.org
Register a domain and help support LQ
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 03-27-2007, 01:42 AM   #1
windycity_linux
Member
 
Registered: Mar 2006
Distribution: rhel 5
Posts: 74

Rep: Reputation: 15
localhost.localdomain. internet address problem


I am getting this warning message after i enter the user name and passwd to log in. I am using RHEL 4 with GNOME desktop, the machine has dynamic ip with dhcp. Every thing works fine (ie internet connection). Any help will be appreciated.

"Could not look up internet address for localhost.localdomain.
This will prevent GNOME from operating correctly.
It may be possible to correct the problem by adding
localhost.localdomain to the file /etc/hosts."


I checked the /etc/hosts file, it was empty. I experimented by adding this line

"localhost.localdomain. 127.0.0.1"

Any help will be appreciated. thanks
 
Old 03-27-2007, 04:42 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
I think you were close. I am running Ubuntu which uses Gnome. The following lines were present in /etc/hosts (before I started mucking with it!):

Code:
127.0.0.1 localhost
127.0.1.1 <hostname>

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
The <hostname> in the second line is the contents of the the /etc/hostname file. Just to give you a heads up, I seriously broke Gnome by altering /etc/hostname w/o changing the corresponding entry in /etc/hosts. After altering /etc/hosts so they matched, all was well again.
 
Old 03-28-2007, 04:26 AM   #3
windycity_linux
Member
 
Registered: Mar 2006
Distribution: rhel 5
Posts: 74

Original Poster
Rep: Reputation: 15
thanks for your reply - i was still getting the error msg even after my experiment; most probably because i need to change the order i entered the info (ip address first then localhost). I will update if changing the order will solve the problem.

It was a new installation, i wonder why the entry was not made in the /etc/hosts file. The only possible reason i could think of is the machine had a very old amd ethernet card that it did not detect util Kudzu hardware detection was ran after the installation. just my thought.
 
Old 03-28-2007, 11:26 PM   #4
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by windycity_linux
thanks for your reply - i was still getting the error msg even after my experiment; most probably because i need to change the order i entered the info (ip address first then localhost). I will update if changing the order will solve the problem.
Definately change the order. And I think you will need that second line I posted for Gnome to work properly. (Lack of it seems to cause DBus problems, and inability to launch programs.)

Quote:
It was a new installation, i wonder why the entry was not made in the /etc/hosts file. The only possible reason i could think of is the machine had a very old amd ethernet card that it did not detect util Kudzu hardware detection was ran after the installation. just my thought.
Sounds like a reasonable conjecture to me.
 
  


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
sendmail from address is root@localhost.localdomain procfs Linux - Software 9 09-26-2006 11:42 AM
localhost.localdomain problem abdul_zu Linux - Networking 6 03-15-2005 05:52 AM
could not lookup internet address for localhost.localdomain verstapp Linux - Networking 1 03-15-2004 04:44 PM
Resolver problem: ping localhost.localdomain gives Unknown host rmd Linux - Networking 0 11-06-2003 08:58 AM
Could not look up internet address for localhost? Rv5 Red Hat 4 09-29-2003 09:02 PM


All times are GMT -5. The time now is 04:13 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