View previous topic :: View next topic |
Author |
Message |
Cellmate n00b
Joined: 01 Dec 2009 Posts: 39 Location: Germany
|
Posted: Thu Sep 28, 2017 11:08 pm Post subject: DNS resolution by emerge fails [SOLVED] |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21708
|
Posted: Fri Sep 29, 2017 1:24 am Post subject: |
|
|
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 |
|
|
Cellmate n00b
Joined: 01 Dec 2009 Posts: 39 Location: Germany
|
Posted: Fri Sep 29, 2017 1:27 am Post subject: |
|
|
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 |
|
|
|