Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DNS resolution by emerge fails [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Cellmate
n00b
n00b


Joined: 01 Dec 2009
Posts: 26
Location: Rheinberg, Germany

PostPosted: Thu Sep 28, 2017 11:08 pm    Post subject: DNS resolution by emerge fails [SOLVED] Reply with quote

Hi there,

I want to prepare a Gentoo Linux chroot under Debian Stretch. I have mounted dev, proc, and sys with the option rbind, copied /etc/resolv.conf and now when I enter emerge, I get a "Resolving distfiles.gentoo.org... failed: Temporary failure in name resolution.".

This is funny, because I can execute "ping distfiles.gentoo.org" (e.g.) in that chroot without a problem, a manual wget on the URLs given in the error message also works. I have an IPv4-only LAN.

What's wrong? (I have no idea except there must be a different DNS server setting emerge uses, or it's IPv6-only).

It's stage3-amd64 of 20170907 and portage of 20170927


Last edited by Cellmate on Fri Sep 29, 2017 1:28 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 11434

PostPosted: Fri Sep 29, 2017 1:24 am    Post subject: Reply with quote

Is /etc/resolv.conf accessible to unprivileged users? You tested as root, but Portage would run the wget process as user portage. Your symptoms match the results seen when user portage is unable to read /etc/resolv.conf.
Back to top
View user's profile Send private message
Cellmate
n00b
n00b


Joined: 01 Dec 2009
Posts: 26
Location: Rheinberg, Germany

PostPosted: Fri Sep 29, 2017 1:27 am    Post subject: Reply with quote

Hu wrote:
Is /etc/resolv.conf accessible to unprivileged users? You tested as root, but Portage would run the wget process as user portage. Your symptoms match the results seen when user portage is unable to read /etc/resolv.conf.


Thanks a lot. You got it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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