Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
forgot to copy the resolv.conf file over.
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
jedimastermopar
n00b
n00b


Joined: 29 Jul 2004
Posts: 6

PostPosted: Thu Jul 29, 2004 7:41 pm    Post subject: forgot to copy the resolv.conf file over. Reply with quote

While I was doing the install I forgot to copy over the resolve.conf file. I am now at the stage where I am running the emerge sync and it won't resolve...duh. so is the old resolve.conf file still around somewhere I can copy it? If not could someone post there contents so I can make it?
Back to top
View user's profile Send private message
smonijhay1
Apprentice
Apprentice


Joined: 29 Apr 2004
Posts: 229
Location: Ann Arbor Michigan

PostPosted: Thu Jul 29, 2004 7:48 pm    Post subject: Reply with quote

jedimastermopar

the resolv.conf file is just your network domain information and your DNS information

it should look similar to this
Code:


domain your.domain.com
nameserver  xxx.xxx.xxx.xxx


The xxx are the DNS info (if you had any). You should add as many as you need to.

Hope this helps some
_________________
you mean you are going to remember me by what I type....here?
Back to top
View user's profile Send private message
db_404
Guru
Guru


Joined: 05 Dec 2002
Posts: 336

PostPosted: Thu Jul 29, 2004 7:48 pm    Post subject: Reply with quote

It can contain other things but at its most basic:
Code:

nameserver xxx.xxx.xxx.xxx


Where the'x's are the ip address of your (or your ISP's) nameserver, you can
have multple 'nameserver' entries if (as is usual) there is more than one nameserver.

Be aware that if you are using DHCP, the client can overwrite your resolve.conf file.
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Thu Jul 29, 2004 7:49 pm    Post subject: Reply with quote

I'm assuming you are in your chrooted env right?

Do this:
Code:

# exit       (this brings you back to the livecd)
# cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile
# emerge sync
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Jul 29, 2004 7:50 pm    Post subject: Reply with quote

The only thing required in a resolv.conf file is a nameserver - your nameserver, i.e. mine or anyone else's won't help you one bit.
If you don't know it, because you're on dhcp for example, then you can easily exit the chroot, copy it over and chroot again.
Nothing will be lost, since that is in effect all that's really happened so far.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
jedimastermopar
n00b
n00b


Joined: 29 Jul 2004
Posts: 6

PostPosted: Thu Jul 29, 2004 8:20 pm    Post subject: Reply with quote

thanks guys, seems to be working. :) just wasn't too sure about the synax of the file.
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