View previous topic :: View next topic |
Author |
Message |
caligari1977 n00b
Joined: 02 Sep 2003 Posts: 10 Location: France
|
Posted: Sat Mar 06, 2004 8:19 pm Post subject: Hostname not found |
|
|
Hi, I've got a weird problem : my internet connection is half-broken : everything works nearly ok, dialup, connection, ... all seems working good.
But when I try to look a webpage, retrieve pop-emails, it says "Hostname not found". So I looked the "ifconfig" and "route" output, and everything looked ok too...
Then I made some tests : as root, I can do anything I want, it works as usual, no "unknown host" messages.
As regular user, so far I use IP, it's ok too : I can retrieve my mails if I change the pop.blabla.com to the ip (which I got from a ping as root)
So I guess it's just a config problem. But where should I look??? _________________ THE xmms plugin : http://coverviewer.sf.net
'emerge xmms-coverviewer' |
|
Back to top |
|
|
radulucian Apprentice
Joined: 05 Jan 2004 Posts: 151 Location: Bucharest Romania
|
Posted: Sat Mar 06, 2004 8:55 pm Post subject: weird solution for weird problem |
|
|
couldn't quite say what the problem is but here is a possible solution (workaround), just as weird as the problem
you can emerge bind, and set it up as a caching DNS. then all your name resolution will be done locally so it should work for all users. default instalation may work.
while loged as root, you should
emerge bind
then test this workaround by starting it
/etc/init.d/named start
test some addresses from the non-root account and if it works you may want to add named to your startup with
rc-update add named default
hope it helps, if you eventually figure out what the problem was you can remove bind and also don't forget to post the solution here _________________ --------------------------
i am gen2 fan too
noone clicks links in the signature
-------------------------- |
|
Back to top |
|
|
caligari1977 n00b
Joined: 02 Sep 2003 Posts: 10 Location: France
|
Posted: Sat Mar 06, 2004 11:57 pm Post subject: |
|
|
Well... I tried to install bind.
There is a change : now the "Unknown host" takes two second to appear instead of popping instantaneously
Maybe I'll try again towmorrow with deeper testing. _________________ THE xmms plugin : http://coverviewer.sf.net
'emerge xmms-coverviewer' |
|
Back to top |
|
|
Flolp n00b
Joined: 02 Jul 2003 Posts: 26
|
Posted: Sun Mar 07, 2004 1:10 am Post subject: |
|
|
Check the permissions of your /etc/resolv.conf
I just tried to set it to rw-/---/--- and got unknown host, too. Running "chmod a+r /etc/resolv.conf" should do.
If your program can't read the address of the nameserver, it can't resolv. |
|
Back to top |
|
|
caligari1977 n00b
Joined: 02 Sep 2003 Posts: 10 Location: France
|
Posted: Sun Mar 07, 2004 7:55 am Post subject: |
|
|
Yes!!! That was it.
Thanks a lot! _________________ THE xmms plugin : http://coverviewer.sf.net
'emerge xmms-coverviewer' |
|
Back to top |
|
|
|