Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Not resolving DNS after chroot, resolv.conf copied
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Vryali
n00b
n00b


Joined: 11 Apr 2007
Posts: 4

PostPosted: Wed Apr 11, 2007 6:59 am    Post subject: Not resolving DNS after chroot, resolv.conf copied Reply with quote

Moving through the installation steps everything works properly (as best I can tell) up until i chroot. Prior to chroot I'm able to ping fine (by domain name), the contents of resolv.conf before and after the chroot command are:

Code:
# Generated by dhcpcd for interface eth0
search XXXXXX.com // I just replaced my company name with Xs
nameserver 192.168.20.10
nameserver 192.168.20.12


I am copying the file properly, at the very least post-chroot it reads the same anyway. It can ping, both before and after, said nameservers (which are correct), but doesn't appear to be using them properly after the chroot? Not very good with linux yet, though I hope this is something simple so I can keep on trucking, trying to ping on my windows machine and add the IPs to /etc/hosts for now to continue with the installation =)
Back to top
View user's profile Send private message
gentoome
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jul 2005
Posts: 78

PostPosted: Wed Apr 11, 2007 9:36 am    Post subject: Reply with quote

Could you be a little more specific as to the steps you go through ? Maybe copy/paste the commands and the output ?

John
Back to top
View user's profile Send private message
Vryali
n00b
n00b


Joined: 11 Apr 2007
Posts: 4

PostPosted: Wed Apr 11, 2007 10:25 am    Post subject: Reply with quote

Following the installation steps gets me up to the point where I do:

6.a
Code:

# mount -t proc none /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev
# chroot /mnt/gentoo /bin/bash
# env-update
>> Regenerating /etc/ld.so.cache...
# source /etc/profile
# export PS1="(chroot) $PS1"


I've retyped the text as my laptop shows it below on the following things:

Code:
(chroot) livecd / # ping www.google.com
ping: unknown host www.google.com
(chroot) livecd / # cat /etc/resolv.conf
# Generated by dhcpcd for interface eth0
search XXXX.com
nameserver 192.168.20.10
nameserver 192.168.20.12
(chroot) livecd / # emerge --sync
Notice: (-3, 'Temporary failure in name resolution' )
>>> Starting rsync with rsync://rsync.gentoo.org/gentoo-portage...
>>> Checking server timestamp ...
rsync: getaddrinfo: rsync.gentoo.org 873: Temporary failure in name resolution
rsync error: error in socket IO (code 10) at clientserver.c(107) [receiver=2.6.8]
>>> Retrying...


Here it does 3 retrys and fails out. If I echo "134.68.220.97 rsync.gentoo.org" >> /etc/hosts it works fine. I'm actually trying to get through the installation like that for now, 2nd try, as the first hung up trying to get the kernel, but we'll see how ti goes.

If that isn't enough information, I have zero idea of what else you could possibly want, please let me know specifically, I apologize for any noobness, but I'm not overly familiar with all this =/
Back to top
View user's profile Send private message
jseymour
Apprentice
Apprentice


Joined: 23 Jun 2006
Posts: 202
Location: Gainesville Florida

PostPosted: Wed Apr 11, 2007 10:35 am    Post subject: Reply with quote

Can you give the exact syntax you used to copy resolv.conf.
_________________
WebServerMasters
Gentoo Installation Flash Tutorials
Back to top
View user's profile Send private message
Vryali
n00b
n00b


Joined: 11 Apr 2007
Posts: 4

PostPosted: Wed Apr 11, 2007 10:46 am    Post subject: Reply with quote

Copy pasted from the installation steps, this is what I did...

Code:
(The "-L" option is needed to make sure we don't copy a symbolic link)
# cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf


I did a cat of the file in my last post as well, the /mnt/gentoo/etc/resolv.conf and /etc/resolv.conf are identical in content.
Back to top
View user's profile Send private message
gentoome
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jul 2005
Posts: 78

PostPosted: Wed Apr 11, 2007 1:55 pm    Post subject: Reply with quote

OK, as far as I can see, you're not doing anything wrong. Could you try adding "option debug" on a new line in your /mnt/gentoo/etc/resolv.conf ? I think we need a little more info. BTW, what version of the livecd are you using ? what stage ?

John
Back to top
View user's profile Send private message
Vryali
n00b
n00b


Joined: 11 Apr 2007
Posts: 4

PostPosted: Thu Apr 12, 2007 1:43 pm    Post subject: Reply with quote

gentoome wrote:
OK, as far as I can see, you're not doing anything wrong. Could you try adding "option debug" on a new line in your /mnt/gentoo/etc/resolv.conf ? I think we need a little more info. BTW, what version of the livecd are you using ? what stage ?

John


I won't be able to try again for a bit, unfortunately :( I used the download for the 'minimalist' CD, as proffered the day of my initial post. I downloaded the 700M full one as well but didn't get an opportunity to try that out.

The stage tarballs I tried were snarfed from, I did try both of these separately:
ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/releases/amd64/current/stages/stage3-amd64-2006.1.tar.bz2
ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/releases/x86/current/stages/stage3-i686-2006.1.tar.bz2

~Thanks - I'll try adding option debug at the end of resolv.conf next time as well.
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 8263

PostPosted: Wed Nov 21, 2007 10:09 am    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads as this problem appears to have already been discussed and though the underlying cause was not determined a work around was found.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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