LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 08-26-2004, 03: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:

127.0.0.1 localhost
10.224.36.84 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

Thanks
 
Old 08-26-2004, 04:55 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
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, 06:54 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
hi,
i think go ahead and put those names after the 127.0.0.1 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 06:57 PM.
 
Old 08-27-2004, 11: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:
Code:
Kernel IP routing table
Destination     Gateway        Genmask               Flags     Metric     Ref     Use     Iface
10.224.36.0     *              225.225.225.0         U         0          0       0       eth0
127.0.0.1       *              225.0.0.0             U         0          0       0       lo
default         10.224.36.1    0.0.0                 UG        0          0       0       eth0
 
Old 09-01-2004, 11: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, 04:54 PM   #6
renatore
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??
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:54 AM.

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