Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Resolv.conf Overwritten on Reboot
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
kforbes
n00b
n00b


Joined: 14 Apr 2004
Posts: 1

PostPosted: Wed Apr 14, 2004 11:35 pm    Post subject: Resolv.conf Overwritten on Reboot Reply with quote

I know the answer to this question is probably somewhere, but I can't seem to find it in the forums.

I've got my resolv.conf setup exactly as I want it, yet on reboot it gets overwritten with incorrect values. First, it does not contain the domain, which I apparently need to talk to the computers on my network. Second, it contains an incorrect DNS search path. I don't want to disable DHCP, and yet I don't want DHCP to overwrite my DNS settings. What do I need to do to get DHCP and not have it overwrite my resolv.conf?
Back to top
View user's profile Send private message
PermaNoob
n00b
n00b


Joined: 23 Jan 2004
Posts: 60
Location: Galveston, Texas

PostPosted: Thu Apr 15, 2004 3:59 am    Post subject: Reply with quote

dhcpcd manpage says to use the -R option to prevent it from overwriting /etc/resolv.conf

In your /etc/conf.d/net find the section that looks like this:
Code:

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
dhcpcd_eth0="-R"

dhcpcd_eth0="-R"

Oh yeah... check man dhcpcd for some more useful options.. like -N if you're using ntpd.
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