Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hostname not found
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
caligari1977
n00b
n00b


Joined: 02 Sep 2003
Posts: 10
Location: France

PostPosted: Sat Mar 06, 2004 8:19 pm    Post subject: Hostname not found Reply with quote

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
View user's profile Send private message
radulucian
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 151
Location: Bucharest Romania

PostPosted: Sat Mar 06, 2004 8:55 pm    Post subject: weird solution for weird problem Reply with quote

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 :D
--------------------------
Back to top
View user's profile Send private message
caligari1977
n00b
n00b


Joined: 02 Sep 2003
Posts: 10
Location: France

PostPosted: Sat Mar 06, 2004 11:57 pm    Post subject: Reply with quote

Well... I tried to install bind.
There is a change : now the "Unknown host" takes two second to appear instead of popping instantaneously :lol:

Maybe I'll try again towmorrow with deeper testing.
_________________
THE xmms plugin : http://coverviewer.sf.net
'emerge xmms-coverviewer'
Back to top
View user's profile Send private message
Flolp
n00b
n00b


Joined: 02 Jul 2003
Posts: 26

PostPosted: Sun Mar 07, 2004 1:10 am    Post subject: Reply with quote

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
View user's profile Send private message
caligari1977
n00b
n00b


Joined: 02 Sep 2003
Posts: 10
Location: France

PostPosted: Sun Mar 07, 2004 7:55 am    Post subject: Reply with quote

Yes!!! That was it.

Thanks a lot!
_________________
THE xmms plugin : http://coverviewer.sf.net
'emerge xmms-coverviewer'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum