View previous topic :: View next topic |
Author |
Message |
kforbes n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 Apr 2004 Posts: 1
|
Posted: Wed Apr 14, 2004 11:35 pm Post subject: Resolv.conf Overwritten on Reboot |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
PermaNoob n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 Jan 2004 Posts: 60 Location: Galveston, Texas
|
Posted: Thu Apr 15, 2004 3:59 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|