Hi everyone,

If you don't want dhcpcd to overwrite your resolv.conf
then tell it not to configure the DNS.

The configuration can be made through your /etc/conf.d/net file :

config_eth0=( "dhcp" )
dhcp_eth0="nodns nontp nonis"


That's the "nodns" which take care of not touching your resolv.conf
file.

Hope this helps!

Have a nice day, and Happy New year everyone ;)
Red.


On Wed, Jan 07, 2009 at 09:47:39PM -0700, Hung Dang wrote:
> Eric Martin wrote:
> > Hung Dang wrote:
> >> Hi all,
> >> I have a strange problem that the resolv.conf  file  is reset to the
> >> default file every time I reboot my computer.
> >> Does anyone has similar problem before?
> >>
> >> Thanks,
> >> Hung
> >>
> >>   
> > dhcpcd does this.  Are you running dhcp on the machine?
> > # Generated by dhcpcd
> > # /etc/resolv.conf.head can replace this line
> 
> Eric: Thanks for a quick reply.
> 
> You are correct. Every time I reboot my machine dhcpcd override
> resolv.conf file. I only use dhcpcd in my system and below is the
> content of the new resolv.conf
> 
> # Generated by dhcpcd
> # /etc/resolv.conf.head can replace this line
> # /etc/resolv.conf.tail can replace this line
> 
> 
> I guest the head and tail of the resolv.conf can be replace by
> /etc/resolv.conf.head and /etc/resolv.conf.tail files.
> My question is I have several Gentoo machines, how ever this problem
> only happen with the new one. Do you have any suggestion for my problem?
> 
> Thanks
> Hung
> 
> 
> 
> 

Reply via email to