Although openresolv is most known for allowing multiple applications to modify
/etc/resolv.conf, it is currently the only standard way to implement:
- dynamic control of a DNS resolver (other than glibc),
- dynamic conditional forwarding.
Install the package.
/etc/resolvconf.conf. See for supported options.
resolvconf -u will generate
- dhcpcd has a hook which uses resolvconf if it is installed.
- iwd#Enable built-in network configuration
Openresolv can be configured to pass name servers and search domains to DNS resolvers. The supported resolvers are:
See the official documentation for instructions.
Tips and tricks
Defining multiple values for options
The man page does not mention it, but to define multiple values, for options that support it (e.g.
resolv_conf_options etc.) in
/etc/resolvconf.conf, you need to write them space separated inside quotes. E.g.:
resolv_conf_options="edns0 single-request" name_servers="192.168.35.1 fd7b:d0bd:7a6e::1"