Difference between revisions of "Openresolv"

From ArchWiki
Jump to: navigation, search
(How to define multiple name-servers in resolvconf.conf)
Line 40: Line 40:
 
=== Defining multiple name-servers ===
 
=== Defining multiple name-servers ===
  
The man page doesn't mention it, but to define multiple name-servers in resolvconf.conf you need to write them space separated inside quotes.
+
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.
  
 
{{hc|/etc/resolvconf.conf|2=
 
{{hc|/etc/resolvconf.conf|2=
 
name_servers="dns1.example.com dns2.example.com dns3.example.com"
 
name_servers="dns1.example.com dns2.example.com dns3.example.com"
 
}}
 
}}

Revision as of 15:45, 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

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.

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