Click to See Complete Forum and Search --> : Cannot resolve name error. - I can't connect to anything..


jd.elliott
02-04-2002, 11:35 AM
I think I may have messed something up.

I can't get out on my linux box anymore. The only thing I think I could have done was I tried to add my machine name to my /etc/hosts file. Didn't work. Next time I rebooted it was gone.

But I can't get out. All browsers are giving the "Can't resolve name" error. I can't even get localhost.

Can anyone give me a suggestions. Not being connected sucks.

I'm running Mandrake 8.1 right now.

Thanks

ferrol
02-04-2002, 12:21 PM
Sounds like the hosts file is blank,

Check that it has atleast
120.0.0.1 localhost
x.x.x.x yourhostname

As for getting out do you mean out onto the internet. If so then you need to add the DNS server addresses of your ISP to the /etc/resolv.conf file.

The file should be quite self-explanitry(sp?) if you get stuck post back.

Quick question: did you change the file as root?