| View previous topic :: View next topic |
| Author |
Message |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6440 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Dec 07, 2012 2:07 pm Post subject: dhcpcd -R Option Gone? [Solved] |
|
|
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 _________________ This space intentionally left blank.
Last edited by John R. Graham on Fri Dec 07, 2012 3:55 pm; edited 1 time in total |
|
| Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6289 Location: Blighty
|
Posted: Fri Dec 07, 2012 3:46 pm Post subject: |
|
|
-C resolv.conf
OR remove DNS all options to request from /etc/dhcpcd.conf _________________ 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 |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6440 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Dec 07, 2012 3:54 pm Post subject: |
|
|
Worked. Thank you, sir.
I'll follow up with a bug to request a correction to the examples.
- John _________________ This space intentionally left blank. |
|
| Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6289 Location: Blighty
|
Posted: Sat Dec 08, 2012 12:32 pm Post subject: |
|
|
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. _________________ 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 |
|
 |
|