6

I'm trying to configure OpenVPN to update DNS-servers as described here. That seems to work, but resolvconf prepends nameservers (and also search domains) to the list of existing nameservers. How can I make it append stuff to the end (i.e. give lower priority to these settings)?

  • Word of caution: the last search domain setting is the only one that's used. Therefore it has the highest priority. – muru Dec 2 '14 at 15:47
4

You can use the resolv.conf.head and resolv.conf.tail files to add lines before and after the content generated by resolvconf

0

When you add nameservers and search domains to /etc/resolvconf/resolv.conf.d/base and then run sudo resolvconf -u it will append you records to etc/resolv.conf.

0

Resolvconf prioritizes nameserver addresses according to interface type. The priority can be changed by updating either the /etc/interface-order file or /etc/resolvconf.conf. For example, to make sure nameservers for eno1 have a higher priority, add this line to /etc/resolvconf.conf:

interface_order="lo* eno*"

0

use name_servers_append instead of name_servers

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.