Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcpcd -R Option Gone? [Solved]
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
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Dec 07, 2012 2:07 pm    Post subject: dhcpcd -R Option Gone? [Solved] Reply with quote

So I'm having this temporary issue at work where a DHCP server not under my control is serving the address of a DNS server that is down, causing a long time out before every name is resolved by the second name server that DHCP provides. So, I planned to temporarily modify my /etc/conf.d/net to force the DNS server addresses until IT gets its act together. In /usr/share/doc/openrc-0.11.5/net.example.bz2, the following guidance exists:
Code:
# Setting name/domain server causes /etc/resolv.conf to be overwritten
# Note that if DHCP is used, and you want this to take precedence then
# please put -R in your dhcpcd options
#dns_servers_SSID="192.168.0.1 192.168.0.2"
However, the current stable dhcpcd (5.6.2 as of this writing) doesn't have an -R option and I can't immediately identify which one should replace it. Clues?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.


Last edited by John R. Graham on Fri Dec 07, 2012 3:55 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: 6835
Location: Blighty

PostPosted: Fri Dec 07, 2012 3:46 pm    Post subject: Reply with quote

-C resolv.conf

OR remove DNS all options to request from /etc/dhcpcd.conf
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Dec 07, 2012 3:54 pm    Post subject: Reply with quote

Worked. Thank you, sir.

I'll follow up with a bug to request a correction to the examples.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat Dec 08, 2012 12:32 pm    Post subject: Reply with quote

Thinking about your actual problem some more, you are going about this the wrong way!
Install openresolv and set
Code:
name_server_blacklist=1.2.3.4

in /etc/resolvconf.conf

OR use a decent local resolver which can work this out like say unbound.

That way DHCP DNS still works if you move the machine between networks.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
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