[gentoo-user] resolv.conf being overwritten

2007-12-10 Thread Sean
On a newly built amd64 based system my resolv.conf keeps 
getting overwritten on system startup so I am loosing my 
nameserver entry.


The system is set with a static address and I have 
dhcp_eth0=nodns in my conf.d/net file.


I read that this included entry would prevent my resolv.conf 
file from being overwritten. Obviously not the case.


Would anyone know a cure to prevent this little annoying 
problem?


Thanks
Sean
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] resolv.conf being overwritten

2007-12-10 Thread Daniel Pielmeier
2007/12/10, Sean [EMAIL PROTECTED]:
 On a newly built amd64 based system my resolv.conf keeps
 getting overwritten on system startup so I am loosing my
 nameserver entry.

 The system is set with a static address and I have
 dhcp_eth0=nodns in my conf.d/net file.

 I read that this included entry would prevent my resolv.conf
 file from being overwritten. Obviously not the case.

 Would anyone know a cure to prevent this little annoying
 problem?

 Thanks
 Sean
 --
 [EMAIL PROTECTED] mailing list



The file /etc/resolv.conf is generated by the net-init scripts
everytime you establish a connection. You need to add the dns servers
in  /etc/conf.d/net. Take a look in /etc/conf.d/net.example. The
settings for dns servers you have to put in /etc/conf.d/net should be
explained there. So the dns-servers are written to /etc/resolv.conf by
the init script.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] resolv.conf being overwritten

2007-12-10 Thread Daniel Pielmeier

Sean schrieb:
On a newly built amd64 based system my resolv.conf keeps getting 
overwritten on system startup so I am loosing my nameserver entry.


The system is set with a static address and I have dhcp_eth0=nodns in 
my conf.d/net file.


I read that this included entry would prevent my resolv.conf file from 
being overwritten. Obviously not the case.


Would anyone know a cure to prevent this little annoying problem?

Thanks
Sean


I have access to my box now, did something like this work, instead of 
setting dhcp_eth0=nodns.


config_eth0=( dhcp )
dns_servers_eth0=( 192.168.0.1 )
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] resolv.conf being overwritten

2007-12-10 Thread Sean

Daniel Pielmeier wrote:


I have access to my box now, did something like this work, instead of 
setting dhcp_eth0=nodns.


config_eth0=( dhcp )
dns_servers_eth0=( 192.168.0.1 )


Thanks Daniel.

	I have since discovered that myself. It seems odd that the 
install instructions do not mention this right up front for 
a static address setup. All else is mentioned.


Sean

--
[EMAIL PROTECTED] mailing list