Review your favorite Linux distribution.
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 08-26-2004, 02:46 PM   #1
Mr Mister
LQ Newbie
Registered: Aug 2004
Distribution: Mandrake 9.2, Fedora Core 2
Posts: 4

Rep: Reputation: 0
Could not look up internet address

When I try to log into GNOME, I get the error message saying "Could not look up internet address for iws-pllnx01.internal.local. This will prevent GNOME from operating correctly. It may be possible to correct the problem by adding iws-pllnx01.internal.local to the file /etc/hosts."

I have read through many other threads regarding this problem and I've tried many many different ways of adding my host name to the hosts file. Right now the hosts file has: localhost iws-pllnx01.internal.local iws-pllnx01

I cannot connect to the Internet, but it seems to still be on the LAN because I can connect to it through other computers on the network. The strange thing is I used to be able to connect to the Internet without a problem and I did not change any of the configuration. This problem just happened one time when I went to log in. The output of ifconfig contains the IP address I have in the hosts file.

I'm trying to think of everything I did the last time I was able to log in successfully. I FTPed some files using gFTP and I noticed that when I reboot it says shutting down proftpd failed. I don't know if anything I did there could be related.

Anyway I'm stumped. Any advise would be appreciated.

I'm using Mandrake 9.2

Old 08-26-2004, 03:55 PM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Check your /etc/resolv.conf.
It should have the IP numeric addresses of your main DHCP/DNS server and the 2 (usually) DNS servers owned by your ISP.
Old 08-26-2004, 05:54 PM   #3
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
i think go ahead and put those names after the entry as well making localhost last
also i think give us the results of the "route" command (run it as root)

Last edited by foo_bar_foo; 08-26-2004 at 05:57 PM.
Old 08-27-2004, 10:46 AM   #4
Mr Mister
LQ Newbie
Registered: Aug 2004
Distribution: Mandrake 9.2, Fedora Core 2
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the help. It does seem like a DNS problem. I can ping another machine using the IP address but I cannot ping it using the machine's name.

I checked /etc/resolv.conf and it has one nameserver entry which I assume is the correct DNS server since I never changed it. However, I should try to confirm that and (hopefully) I'm wrong.

Is there anything else I could check that would cause DNS to fail?

The output of route is:
Kernel IP routing table
Destination     Gateway        Genmask               Flags     Metric     Ref     Use     Iface     *             U         0          0       0       eth0       *                 U         0          0       0       lo
default    0.0.0                 UG        0          0       0       eth0
Old 09-01-2004, 10:05 AM   #5
Mr Mister
LQ Newbie
Registered: Aug 2004
Distribution: Mandrake 9.2, Fedora Core 2
Posts: 4

Original Poster
Rep: Reputation: 0
Thumbs up

Looks like this thread is dead, but I thought I'd post this reply in case anyone Googles here with the same problem I was having. Turns out it was a DNS issue. I had the wrong server name in my /etc/resolv.conf file. Once I put in the correct DNS server, it worked.

If you are getting that error when you log in and your /etc/hosts file is correct, check /etc/resolv.conf.

Thanks to the guys who replied to this thread and helped me pinpoint the issue.
Old 01-11-2010, 03:54 PM   #6
LQ Newbie
Registered: Jan 2010
Posts: 3

Rep: Reputation: 0
Red face don't mess arround with hostname as root :-D

i had the same problem in karmic koala 9.10.

I solved it this way:

it happened after echoing in the root account - i know, i know...
i changed the look of ma hostname or something i don't know what,
anyway, when i tried to login to xfce it wasn't working allright, got that same message.
it was connecting to the net and all, but there was no posibility to logout, reboot, shutdown from xfcs, had to login to tty1 as root and kill xorg....

In the gnome, lxde, openbox window managers all worked well and normally.

so, after reading and trying a lot of stuff found here and there
and none of them worked, i looked in my home folder with the
view of hidden files.

in the folder .wapi, i found two files, that had the name of host i
created during the installation of my xubuntu. i realized, that that
was the name i have to put in my /etc/hosts file, so i did it,
rebooted (dunno if that was necessary, but i deleted my wingdoze
just this week to put my home on that partition, so i'm a little used to that still )

After restart, all went normally, xfce started withot that message and with the xfce
session chooser, which was gone during the login's with error.

hope that this will help someone, messing around as i did, trying to change hostname
in the terminal as root, not knowing what it can do.

don't do it in your root account guyz, alright??


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
Could not look up internet address for x1-6-00-02-e3-0b-39-3f MichaelD Linux - Newbie 4 05-23-2005 09:23 PM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM
Could not look up internet address for Doug.Gentry Linux - Networking 5 02-29-2004 06:02 PM
Internet Address jimthing2001 Linux - General 2 01-05-2004 09:24 PM
Should i use the eth0 ip address of my internet ip address when applying iptables ForumKid Linux - Security 2 01-03-2002 08:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:55 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
Open Source Consulting | Domain Registration