View previous topic :: View next topic |
Author |
Message |
jedimastermopar n00b
Joined: 29 Jul 2004 Posts: 6
|
Posted: Thu Jul 29, 2004 7:41 pm Post subject: forgot to copy the resolv.conf file over. |
|
|
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 |
|
|
smonijhay1 Apprentice
Joined: 29 Apr 2004 Posts: 229 Location: Ann Arbor Michigan
|
Posted: Thu Jul 29, 2004 7:48 pm Post subject: |
|
|
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 |
|
|
db_404 Guru
Joined: 05 Dec 2002 Posts: 336
|
Posted: Thu Jul 29, 2004 7:48 pm Post subject: |
|
|
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 |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Thu Jul 29, 2004 7:49 pm Post subject: |
|
|
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 |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Thu Jul 29, 2004 7:50 pm Post subject: |
|
|
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 |
|
|
jedimastermopar n00b
Joined: 29 Jul 2004 Posts: 6
|
Posted: Thu Jul 29, 2004 8:20 pm Post subject: |
|
|
thanks guys, seems to be working. just wasn't too sure about the synax of the file. |
|
Back to top |
|
|
|