Difference between revisions of "Openresolv"
Jump to navigation
Jump to search
(→Usage: flag with Template:Expansion, this section could use examples) |
(systemd-resolvconf is a part of systemd-resolved and works only with it; use Template:Tip) |
||
(21 intermediate revisions by 5 users not shown) | |||
Line 3: | Line 3: | ||
[[ja:Openresolv]] | [[ja:Openresolv]] | ||
[[pt:Openresolv]] | [[pt:Openresolv]] | ||
− | [https://roy.marples.name/projects/openresolv Openresolv] is a [[resolv.conf]] management framework. | + | {{Related articles start}} |
+ | {{Related|systemd-resolvconf}} | ||
+ | {{Related articles end}} | ||
+ | |||
+ | [https://roy.marples.name/projects/openresolv Openresolv] is a [[Wikipedia:resolvconf|resolvconf]] implementation, i.e. a [[resolv.conf]] management framework. | ||
+ | |||
+ | {{Tip|An alternative implementation is [[systemd-resolvconf]], but it can only be used with [[systemd-resolved]].}} | ||
== Installation == | == Installation == | ||
Line 19: | Line 25: | ||
== Users == | == Users == | ||
− | Stand-alone DHCP clients: | + | Stand-alone [[DHCP]] clients: |
− | * [[dhcpcd]] has a hook which uses resolvconf if it is installed. | + | * [[dhcpcd]] has a hook which uses ''resolvconf'' if it is installed. |
[[Network manager]]s: | [[Network manager]]s: | ||
Line 31: | Line 37: | ||
* [[OpenVPN#DNS]] | * [[OpenVPN#DNS]] | ||
+ | * [[strongSwan]] | ||
+ | * [[WireGuard]] | ||
+ | |||
+ | == Subscribers == | ||
+ | |||
+ | Openresolv can be configured to pass name servers and search domains to DNS resolvers. The supported resolvers are: | ||
+ | |||
+ | * [[BIND]] | ||
+ | * [[dnsmasq#openresolv]] | ||
+ | * [[pdnsd]] | ||
+ | * [[Unbound]] | ||
+ | |||
+ | See the [https://roy.marples.name/projects/openresolv/config 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. {{ic|name_servers}}, {{ic|resolv_conf_options}} etc.) in {{ic|/etc/resolvconf.conf}}, you need to write them space separated inside quotes. E.g.: | ||
+ | |||
+ | {{hc|/etc/resolvconf.conf|2= | ||
+ | resolv_conf_options="edns0 single-request" | ||
+ | name_servers="192.168.35.1 fd7b:d0bd:7a6e::1" | ||
+ | }} |
Latest revision as of 12:34, 23 January 2019
Openresolv is a resolvconf implementation, i.e. a resolv.conf management framework.
Tip: An alternative implementation is systemd-resolvconf, but it can only be used with systemd-resolved.
Contents
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
.
Users
Stand-alone DHCP clients:
- dhcpcd has a hook which uses resolvconf if it is installed.
- netctl (used by default)
- NetworkManager#Use openresolv
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"