1 .\" Copyright 2007-2009 Roy Marples
2 .\" All rights reserved
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .Nd a framework for managing multiple DNS configurations
35 .Fl a Ar interface No < Ns Pa file
47 files from multiple sources, such as DHCP and VPN clients.
48 Traditionally, the host runs just one client and that updates
49 .Pa /etc/resolv.conf .
50 More modern systems frequently have wired and wireless interfaces and there is
51 no guarantee both are on the same network.
52 With the advent of VPN and other
53 types of networking daemons, many things now contend for the contents of
54 .Pa /etc/resolv.conf .
57 solves this by letting the daemon send their
65 instead of the filesystem.
70 When a local resolver other than libc is installed, such as
76 will supply files that the resolver should be configured to include.
79 can mark an interfaces
82 This means that the name servers listed in that
84 are only used for queries against the domain/search listed in the same file.
85 This only works when a local resolver other than libc is installed.
90 to use a local name server.
92 When an interface goes down, it should then call
96 arguments to delete the
101 Here are some more options that
104 .Bl -tag -width indent
106 Ignore non existant interfaces.
107 Only really useful for deleting interfaces.
109 List the interfaces, optionally matching
120 is specified then we list the files for the interfaces that match it.
122 Set the metric of the interface when adding it, default of 0.
123 Lower metrics take precedence.
124 This affects the default order of interfaces when listed.
132 to update all it's subscribers.
134 does not update the subscribers when adding a resolv.conf that matches
135 what it already has for that interface.
139 also has some options designed to be used by it's subscribers:-
140 .Bl -tag -width indent
141 .It Fl s Ar service Ar command ...
146 Normally this is something like
147 .Ar resolvconf -s named restart .
148 We have this command, so the subscribers don't have to know too much about the
149 operating system on the host.
151 Echo variables DOMAINS, SEARCH and NAMESERVERS so that the subscriber can
152 configure the resolver easily.
154 .Sh INTERFACE ORDERING
157 to work effectively, it has to process the resolv.confs for the interfaces
158 in the correct order.
160 first processes interfaces from the
162 list, then interfaces without a metic and that match the
164 list, then interfaces with a metric in order and finally the rest in
165 the operating systems lexical order.
167 .Xr resolvconf.conf 5
168 for details on these lists.
174 option is not present then we use
184 .It Pa @SYSCONFDIR@/resolvconf.conf
185 Configuration file for
188 Directory of subscribers which are run every time
190 adds, deletes or updates.
191 .It Pa @LIBEXECDIR@/libc.d
192 Directory of subscribers which are run after the libc subscriber is run.
193 .It Pa @VARBASE@/run/resolvconf
198 This implementation of
200 is called openresolv and is fully command line compatible with Debian's
201 resolvconf, as written by Thomas Hood.
204 does not validate any of the files given to it.
206 When running a local resolver other than libc, you will need to configure it
207 to include files that
211 .Xr resolvconf.conf 5
212 for instructions on how to configure your resolver.
220 .An Roy Marples Aq roy@marples.name
222 Please report them to http://roy.marples.name/projects/openresolv