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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-26-2004, 02:46 PM
|
#1
|
LQ Newbie
Registered: Aug 2004
Distribution: Mandrake 9.2, Fedora Core 2
Posts: 4
Rep:
|
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
|
|
|
08-26-2004, 03:55 PM
|
#2
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434
|
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.
|
|
|
08-26-2004, 05:54 PM
|
#3
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
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 05:57 PM.
|
|
|
08-27-2004, 10:46 AM
|
#4
|
LQ Newbie
Registered: Aug 2004
Distribution: Mandrake 9.2, Fedora Core 2
Posts: 4
Original Poster
Rep:
|
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
|
|
|
09-01-2004, 10:05 AM
|
#5
|
LQ Newbie
Registered: Aug 2004
Distribution: Mandrake 9.2, Fedora Core 2
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
01-11-2010, 03:54 PM
|
#6
|
LQ Newbie
Registered: Jan 2010
Posts: 3
Rep:
|
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??
|
|
|
All times are GMT -5. The time now is 12:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|