Openvpn startup reports the following: [server] Peer Connection Initiated with [AF_INET]127.0.0.12 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1) PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 10.50.0.1,comp-lzo no,route-gateway 10.50.0.1,topology subnet,ping 10,ping-restart 60,ifconfig 10.50.3.138 255.255.0.0' The dhcp-option DNS does not appear to work.
If I manually edit to use 10.50.0.1 then DNS works fine.
You might need to change your server’s DNS settings, either because you find that they are misconfigured or because you want to use your own.
This article describes how to change your server’s DNS settings.
If you’re using IPv6 on your server, you might need to add the IPv6 addresses of your name servers to the file.
You can see if a DNS server has an IPv6 address by performing the following steps: ©2017 Rackspace US, Inc.
I have a situation where I am using two ISPs, I have a program that periodically pings an address and if it is down assumes that the ISP has a problem and changes the default route and DNS server entries in /etc/network/interfaces and /etc/resolvconf/d/tail files, respectively.
It changes these settings to be pointed to the backup ISP. I have two DSL modems from two different ISPs and each one provide a set of DNS server addresses.
And I come to the point I understand I need to write down all those bizarre things happen around combination of dhcpclient and (this is not a finished story and more like a travel log)If I dothen, after boot, there are no dns-related dhcp settings in resolv.conf, only ‘options rotate’ line.
directives in the ifcfg-file and to disable the Network Manager.service. Best regards, Joerg Hello Jörg, Did you test Ijkimmel's suggestion?
Without the Network Manager running I should be able to deploy the /etc/from an ansible template. Be aware that it only works under the condition as Tom Jones already states: No DCHP or the DCHP server might advertise DNS servers.
Another suggestion I found on the Fedora mailling list, chattr i /etc/to avoid any process or user to change /etc/and only release and set the immune attribute in your Ansible playbook.
Regards, Jan Gerrit dns Set the DNS (resolv.conf) processing mode. Network Manager will update to reflect the nameservers provided by currently active connections.