Difference between revisions of "Openresolv"

From ArchWiki
Jump to: navigation, search
(Usage: add supported resolvers, link to documentation)
m (Defining multiple name-servers: add "E.g.")
(3 intermediate revisions by 2 users not shown)
Line 35: Line 35:
 
* [[strongSwan]]
 
* [[strongSwan]]
 
* [[WireGuard]]
 
* [[WireGuard]]
 +
 +
== Tips and tricks ==
 +
 +
=== Defining multiple name-servers ===
 +
 +
{{Expansion|This is not limited to {{ic|name_servers}}, it applies to almost all options.}}
 +
 +
The man page does not mention it, but to define multiple name-servers in {{ic|/etc/resolvconf.conf}} you need to write them space separated inside quotes. E.g.:
 +
 +
{{hc|/etc/resolvconf.conf|2=
 +
name_servers="dns1.example.com dns2.example.com dns3.example.com"
 +
}}

Revision as of 15:50, 17 July 2018

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

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.

Openresolv can additionally be configured to pass DNS server addresses to unbound, dnsmasq, BIND and pdnsd resolvers. See the official documentation for instructions.

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:

Tips and tricks

Defining multiple name-servers

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

Reason: This is not limited to name_servers, it applies to almost all options. (Discuss in Talk:Openresolv#)

The man page does not mention it, but to define multiple name-servers in /etc/resolvconf.conf you need to write them space separated inside quotes. E.g.:

/etc/resolvconf.conf
name_servers="dns1.example.com dns2.example.com dns3.example.com"