Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] dhcpcd is overwriting /etc/resolv.conf even with -R
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
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1139
Location: San Jose, CA

PostPosted: Wed Oct 01, 2008 3:57 pm    Post subject: [solved] dhcpcd is overwriting /etc/resolv.conf even with -R Reply with quote

Latest emerge has fouled my work gentoo box. I don't know if dhcpcd emerged or not. I could check the log.

But at any rate, resolv.conf is being overwritten by dhcpcd even though I have this in my eth1 config line in /etc/conf.d/net:

Code:
config_eth1=("dhcp")
dhcpcd_eth1="-R -Y -h ${HOSTNAME}"


Can someone give me any idea why dhcpcd would ignore -R?

Thanks in advance,

Raydude

PS dhcpcd 4.0.1-r1 may have just emerged... Anyone else having this problem?
_________________
Some day there will only be free software.


Last edited by RayDude on Wed Oct 01, 2008 4:27 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: 6271
Location: Blighty

PostPosted: Wed Oct 01, 2008 4:02 pm    Post subject: Reply with quote

http://bugs.gentoo.org/show_bug.cgi?id=239098

There there too! Please post there and comment if the patch works for you.
_________________
When baselayout tells you to update config files or things break WE REALLY DO MEAN IT

Please add SOLVED to the thread title if your issue has been
Strip comments from configs please
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1139
Location: San Jose, CA

PostPosted: Wed Oct 01, 2008 4:11 pm    Post subject: Reply with quote

Thanks Uberlord!

Unfortunately, my network here at work requires me to not overwrite the file as their dhcp servers are ... not programmed correctly? Or something like that.

Here's the fix for me:

/etc/init.d/conf.d/net
Code:
config_eth1=("dhcp")
dhcpcd_eth1="‐C resolv.conf"


(I haven't tested this yet with a reboot, will as soon as vmplayer re-emerges)

DHCPCD 4 changed the way it controls stuff and a lot of options have changed.

Thanks again,

Raydude

Update: The above file did not work. Seems there are problems with scripting...

This works and its all the time I can give the issue:

Code:
config_eth1=("dhcp")
dhcpcd_eth1="eth1 -C resolv.conf"

_________________
Some day there will only be free software.


Last edited by RayDude on Wed Oct 01, 2008 4:25 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: 6271
Location: Blighty

PostPosted: Wed Oct 01, 2008 4:16 pm    Post subject: Reply with quote

Yes, that is also a fix, but the patch attempts to make -R work when compat mode is in use.
_________________
When baselayout tells you to update config files or things break WE REALLY DO MEAN IT

Please add SOLVED to the thread title if your issue has been
Strip comments from configs please
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1139
Location: San Jose, CA

PostPosted: Wed Oct 01, 2008 4:26 pm    Post subject: Reply with quote

Note: I had to specify the device in my dhcpcd_eth1 line. I updated my post above.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6271
Location: Blighty

PostPosted: Wed Oct 01, 2008 6:43 pm    Post subject: Reply with quote

New patch on the bug - should really fix now.
_________________
When baselayout tells you to update config files or things break WE REALLY DO MEAN IT

Please add SOLVED to the thread title if your issue has been
Strip comments from configs please
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