Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
resolv.conf not updating [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
aleron
n00b
n00b


Joined: 07 Jul 2007
Posts: 33

PostPosted: Mon Oct 01, 2007 1:42 pm    Post subject: resolv.conf not updating [solved] Reply with quote

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
View user's profile Send private message
Dagger
Retired Dev
Retired Dev


Joined: 11 Jun 2003
Posts: 765
Location: UK

PostPosted: Mon Oct 01, 2007 1:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
aleron
n00b
n00b


Joined: 07 Jul 2007
Posts: 33

PostPosted: Mon Oct 01, 2007 3:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
vaguy02
Guru
Guru


Joined: 25 Feb 2005
Posts: 424
Location: Hopefully in one place

PostPosted: Mon Oct 01, 2007 3:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dagger
Retired Dev
Retired Dev


Joined: 11 Jun 2003
Posts: 765
Location: UK

PostPosted: Mon Oct 01, 2007 3:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
InAt!QuE
Apprentice
Apprentice


Joined: 02 Jan 2004
Posts: 257
Location: The Netherlands

PostPosted: Mon Oct 01, 2007 5:38 pm    Post subject: Re: resolv.conf not updating Reply with quote

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
View user's profile Send private message
aleron
n00b
n00b


Joined: 07 Jul 2007
Posts: 33

PostPosted: Mon Oct 01, 2007 6:47 pm    Post subject: Reply with quote

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. :P Thank you very much for pointing out the obvious but overlooked solution. :P
_________________
The door resists!
Back to top
View user's profile Send private message
InAt!QuE
Apprentice
Apprentice


Joined: 02 Jan 2004
Posts: 257
Location: The Netherlands

PostPosted: Tue Oct 02, 2007 10:01 am    Post subject: Reply with quote

aleron wrote:
Thank you very much for pointing out the obvious but overlooked solution. :P

No problem
_________________
...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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