Difference between revisions of "Openresolv"

From ArchWiki
Jump to navigation Jump to search
(Users: add OpenConnect, it uses resolvconf via /etc/vpnc/vpnc-script from the vpnc package)
(Mention of more powerful use of openresolv)
(One intermediate revision by the same user not shown)
Line 8: Line 8:
  
 
[https://roy.marples.name/projects/openresolv Openresolv] is a [[Wikipedia:resolvconf|resolvconf]] implementation, i.e. a [[resolv.conf]] management framework.
 
[https://roy.marples.name/projects/openresolv Openresolv] is a [[Wikipedia:resolvconf|resolvconf]] implementation, i.e. a [[resolv.conf]] management framework.
 +
 +
Although openresolv is most know 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 [[Resolv.conf#Conditional_forwarding|Conditional Forwarding]]
  
 
{{Tip|An alternative implementation is [[systemd-resolvconf]], but it can only be used with [[systemd-resolved]].}}
 
{{Tip|An alternative implementation is [[systemd-resolvconf]], but it can only be used with [[systemd-resolved]].}}
Line 32: Line 36:
  
 
* [[netctl]] (used by default)
 
* [[netctl]] (used by default)
* [[NetworkManager#Use openresolv]]
+
* [[NetworkManager#Use openresolv]] (limited to a single interface)
  
 
[[VPN]] clients:
 
[[VPN]] clients:

Revision as of 22:18, 12 May 2019

Openresolv is a resolvconf implementation, i.e. a resolv.conf management framework.

Although openresolv is most know for allowing multiple applications to modify /etc/resolv.conf, it is currently the only standard way to implement:

Tip: An alternative implementation is systemd-resolvconf, but it can only be used with systemd-resolved.

Installation

Install the openresolv package.

Usage

Openresolv provides resolvconf(8) and is configured in /etc/resolvconf.conf. See resolvconf.conf(5) for supported options.

Running resolvconf -u will generate /etc/resolv.conf.

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: Provide common usage examples. (Discuss in Talk:Openresolv#)

Users

Stand-alone DHCP clients:

  • dhcpcd has a hook which uses resolvconf if it is installed.

Network managers:

VPN clients:

Subscribers

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. name_servers, resolv_conf_options etc.) in /etc/resolvconf.conf, you need to write them space separated inside quotes. E.g.:

/etc/resolvconf.conf
resolv_conf_options="edns0 single-request"
name_servers="192.168.35.1 fd7b:d0bd:7a6e::1"