View previous topic :: View next topic |
Author |
Message |
aleron n00b
Joined: 07 Jul 2007 Posts: 33
|
Posted: Mon Oct 01, 2007 1:42 pm Post subject: resolv.conf not updating [solved] |
|
|
I put a fresh Gentoo install on my work laptop this weekend (at home), and everything works great until I boot it up on the network at work. It's set up to use dhcp (both my home and work networks are using dhcp), but when I boot it up at work, I get no DNS access because resolv.conf still has the info from my home network. Why isn't dhcpcd updating resolv.conf? Or am I doing something else wrong?
My /etc/conf.d/net file is pretty standard...
config_eth0=( "dhcp" )
dhcp_eth0="nodns nontp nonis" _________________ The door resists!
Last edited by aleron on Thu Oct 04, 2007 1:46 am; edited 1 time in total |
|
Back to top |
|
|
Dagger Retired Dev
Joined: 11 Jun 2003 Posts: 765 Location: UK
|
Posted: Mon Oct 01, 2007 1:44 pm Post subject: |
|
|
can you also post corresponding part of your dhcpd.conf from dhcp server? _________________ 95% of all computer errors occur between chair and keyboard (TM)
Join the FSF as an Associate Member!
Post under CC license. |
|
Back to top |
|
|
aleron n00b
Joined: 07 Jul 2007 Posts: 33
|
Posted: Mon Oct 01, 2007 3:13 pm Post subject: |
|
|
I don't have a /etc/conf.d/dhcpd...
The dhcp client I emerged when installing was dhcpcd though. Should /etc/conf.d/dhcpd exist? There's no /etc/init.d/dhcpd either. _________________ The door resists! |
|
Back to top |
|
|
vaguy02 Guru
Joined: 25 Feb 2005 Posts: 424 Location: Hopefully in one place
|
Posted: Mon Oct 01, 2007 3:27 pm Post subject: |
|
|
dhcpd is the "server version" that hands out the information. So it would be located on the "DHCP Server" not your local computer. |
|
Back to top |
|
|
Dagger Retired Dev
Joined: 11 Jun 2003 Posts: 765 Location: UK
|
Posted: Mon Oct 01, 2007 3:28 pm Post subject: |
|
|
What I meant was the config of DHCP server which is assigning you IP address. If dhcpd server does not include info about dns, it might happen that's not the client problem. _________________ 95% of all computer errors occur between chair and keyboard (TM)
Join the FSF as an Associate Member!
Post under CC license. |
|
Back to top |
|
|
InAt!QuE Apprentice
Joined: 02 Jan 2004 Posts: 257 Location: The Netherlands
|
Posted: Mon Oct 01, 2007 5:38 pm Post subject: Re: resolv.conf not updating |
|
|
aleron wrote: | I get no DNS access because resolv.conf still has the info from my home network. Why isn't dhcpcd updating resolv.conf? Or am I doing something else wrong?
My /etc/conf.d/net file is pretty standard...
config_eth0=( "dhcp" )
dhcp_eth0="nodns nontp nonis" |
I geuss the option nodns in your /etc/conf.d/net file avoids you to get any dns information. _________________ ...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly). |
|
Back to top |
|
|
aleron n00b
Joined: 07 Jul 2007 Posts: 33
|
Posted: Mon Oct 01, 2007 6:47 pm Post subject: |
|
|
Quote: | I geuss the option nodns in your /etc/conf.d/net file avoids you to get any dns information. |
Removing it does indeed fix it. I suppose I should have already tried that, but I was absolutely sure the comments pertaining to it in net.example meant something else. Thank you very much for pointing out the obvious but overlooked solution. _________________ The door resists! |
|
Back to top |
|
|
InAt!QuE Apprentice
Joined: 02 Jan 2004 Posts: 257 Location: The Netherlands
|
Posted: Tue Oct 02, 2007 10:01 am Post subject: |
|
|
aleron wrote: | Thank you very much for pointing out the obvious but overlooked solution. |
No problem _________________ ...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly). |
|
Back to top |
|
|
|