Re: [gentoo-user] Problem with resolv.conf

2009-01-08 Thread Redouane Boumghar
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
 
 
 
 



[gentoo-user] Problem with resolv.conf

2009-01-07 Thread Hung Dang
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



Re: [gentoo-user] Problem with resolv.conf

2009-01-07 Thread KH
Hung Dang schrieb:
 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

   
I had a problem like this when I used vpn. Never solved it so.

kh



Re: [gentoo-user] Problem with resolv.conf

2009-01-07 Thread Eric Martin

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?



Re: [gentoo-user] Problem with resolv.conf

2009-01-07 Thread Eric Martin
KH wrote:
 Hung Dang schrieb:
   
 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

   
 
 I had a problem like this when I used vpn. Never solved it so.

 kh

   
I want to amend my last statement:  dhcpcd *CAN* do this.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Problem with resolv.conf

2009-01-07 Thread Hung Dang
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