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)?
Asked
Active
Viewed 6,813 times
6
terdon
- 234,489
- 66
- 447
- 667
Eugene Yarmash
- 14,675
- 14
- 50
- 57
-
Word of caution: the last search domain setting is the only one that's used. Therefore it has the highest priority. – muru Dec 02 '14 at 15:47
4 Answers
4
You can use the resolv.conf.head and resolv.conf.tail files to add lines before and after the content generated by resolvconf
darnir
- 4,429
- 1
- 20
- 33
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.
kirill-a
- 2,883
- 1
- 16
- 22
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*"
Eugene Yarmash
- 14,675
- 14
- 50
- 57