Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] /etc/resolv.conf keeps getting overwritten
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
dark_glaive
Apprentice
Apprentice


Joined: 09 May 2004
Posts: 176
Location: Raleigh, NC

PostPosted: Tue Aug 15, 2006 1:28 pm    Post subject: [SOLVED] /etc/resolv.conf keeps getting overwritten Reply with quote

My /etc/resolv.conf gets overwritten every time dhcpcd runs.

My /etc/conf.d/net

Code:
config_eth0=("dhcp")
dhcp_eth0="-R -t 5 -N"


The "-R' should do the trick, right?
_________________
RipOff, a CD Ripper for Linux


Last edited by dark_glaive on Tue Aug 15, 2006 6:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6452
Location: Blighty

PostPosted: Tue Aug 15, 2006 1:30 pm    Post subject: Reply with quote

Yes it should. Have you checked the header of resolv.conf to see what is overwriting it? All dhcp clients in portage put a header there to say who made it
_________________
Use dhcpcd for all your automated network configuration needs
Ask for dhcpcd-ui (GTK+/Qt System Tray Network tool) to be added to Gentoo
Back to top
View user's profile Send private message
dark_glaive
Apprentice
Apprentice


Joined: 09 May 2004
Posts: 176
Location: Raleigh, NC

PostPosted: Tue Aug 15, 2006 5:15 pm    Post subject: Reply with quote

Code:
# Generated by dhcpcd for interface eth0
nameserver 192.168.1.1


is what is in my /etc/resolv.conf after it gets overwritten
_________________
RipOff, a CD Ripper for Linux
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6452
Location: Blighty

PostPosted: Tue Aug 15, 2006 5:38 pm    Post subject: Re: /etc/resolv.conf keeps getting overwritten Reply with quote

Code:
config_eth0=( "dhcp" )
dhcpcd_eth0="-R -t 5 -N"


There we go - dhcpcd and not dhcp
_________________
Use dhcpcd for all your automated network configuration needs
Ask for dhcpcd-ui (GTK+/Qt System Tray Network tool) to be added to Gentoo
Back to top
View user's profile Send private message
dark_glaive
Apprentice
Apprentice


Joined: 09 May 2004
Posts: 176
Location: Raleigh, NC

PostPosted: Tue Aug 15, 2006 6:30 pm    Post subject: Reply with quote

Yep, that did the trick thanks!
_________________
RipOff, a CD Ripper for Linux
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