1 .TH RESOLVCONF 8 "9 Nov 2007" "openresolv" "openresolv"
3 resolvconf \- manage nameserver information
7 \fB\-a\fR \fIINTERFACE\fR
10 \fB\-d\fR \fIINTERFACE\fR
16 \fB\-l\fR \fIPATTERN\fR
19 \fB\-i\fR \fIPATTERN\fR
22 \fB\-v\fR \fIPATTERN\fR
25 \fB\-s\fR \fISERVICE COMMAND [args]\fR
27 Overwrite (\fB\-a\fR) or delete (\fB\-d\fR) the nameserver information
28 record for network interface \fIINTERFACE\fR
29 and run the update scripts in \fI%%PREFIX%%/etc/resolvconf/update.d/\fR.
31 With \fB\-u\fR, just run the update scripts.
33 With \fB\-l\fR, list the resolv files for each interface, optionally
34 with patterns to match interface names.
36 With \fB\-i\fR, list the interfaces we have resolv files for, optionally
37 with patterns to match interface names.
39 With \fB\-v\fR, we echo variables NEWDOMAIN, NEWSEARCH and NEWNS to the
40 console which can be used to make it easer writing scripts which configure
43 With \fB\-s\fR, we work out if the service is running by finding its pidfile
44 and if it is we restart it. This means that only resolvconf needs to know this
45 for supported platforms and subscribers can just call this resolvconf function.
49 is run only by hook scripts attached to network interface configurers
53 to DHCP clients such as
55 to network configuration scripts and
60 (for the loopback interface).
61 However, the administrator can also run
63 from the command line to add or delete auxiliary nameserver information.
65 Nameserver information provided to
67 is stored for use by subscribers to \fBresolvconf\fR's notification service.
68 Subscribers that need to know when nameserver information has changed
69 should install a script in \fI%%PREFIX%%/etc/resolvconf/update.d/\fR
70 (... or in \fI%%PREFIX%%/etc/resolvconf/update-libc.d/\fR: see below).
71 For example, DNS caches such as
75 subscribe to the notification service so that they know
76 whither to forward queries.
78 The most important piece of
79 software that subscribes to the notification service is the set of functions
80 that make up the C Library
82 When nameserver information is updated the script
83 \fI%%PREFIX%%/etc/resolvconf/update.d/libc\fR writes a new resolver configuration
84 file to \fI%%PREFIX%%/etc/resolvconf/run/resolv.conf\fR and then runs the scripts in
85 %%PREFIX%%/etc/resolvconf/update-libc.d/.
86 To make the resolver use the dynamically generated resolver configuration
87 file the administrator should ensure that \fI/etc/resolv.conf\fR is a symbolic
88 link to \fI%%PREFIX%%/etc/resolvconf/run/resolv.conf\fR.
89 This link is never modified by \fBresolvconf\fR.
90 If you find that \fI/etc/resolv.conf\fR is not being updated,
91 check to see that the link is intact.
93 The C Library resolver library isn't the only resolver library available.
94 However, any resolver library that reads /etc/resolv.conf
95 (and most of them do, in order to be compatible with the C Library resolver)
96 should work with \fBresolvconf\fR.
98 \fBopenresolv\fR ships with subscribers for
102 which handle resolv.conf a bit differently. If they handle search AND domain
103 options then the nameservers listed with the domain are only used when
104 querying for that domain.
108 # resolv.conf from bge0
112 # resolv.conf from tap0
117 In this instance, nameserver 5.6.7.8 will only handle requests for bar.org
118 and nameserver 1.2.3.4 will handle everything else.
120 Subscribers that need to know only when the resolver configuration file
121 has changed should install a script in \fI%%PREFIX%%/etc/resolvconf/update-libc.d/\fR
122 rather than in \fI%%PREFIX%%/etc/resolvconf/update.d/\fR.
123 (This is important for synchronization purposes:
124 scripts in \fIupdate-libc.d/\fR are run after resolv.conf has been updated;
125 the same is not necessarily true of scripts in update.d/.)
128 \fB\-a\fR \fIINTERFACE\fR
129 Add or overwrite the record for network interface \fIINTERFACE\fR.
130 When this option is used the information must be provided to
132 on its standard input in the format of the
135 Each line in the file must be terminated by a newline.
137 \fB\-d\fR \fIINTERFACE\fR
138 Delete the record for network interface \fIINTERFACE\fR.
140 The \fIINTERFACE\fR name may not contain spaces, slashes, asterisks or
141 initial dots, hyphens or tildes.
143 Following the addition or deletion of the record, resolvconf runs
144 the update scripts as described in the CLIENTS section.
147 Just run the update scripts.
149 \fB\-l\fR \fIPATTERN\fR
150 List the resolv.conf files for the interfaces that match the pattern,
151 otherwise all the interfaces.
153 \fB\-i\fR \fIPATTERN\fR
154 List the interfaces that match the pattern otherwise all the interfaces.
156 \fB\-v\fR \fIPATTERN\fR
157 Echo variables NEWDOMAIN, NEWSEARCH and NEWNS to the console.
160 .I %%PREFIX%%/etc/resolvconf/run
161 This is either a directory where nameserver information can be stored
162 or a symbolic link to such a directory.
163 Clients should not make any assumptions about the canonical location
164 of this directory or the hierarchy that is constructed under it.
166 .I %%PREFIX%%/etc/resolvconf/interface-order
167 Determines the order in which nameserver information records are processed
170 .I %%PREFIX%%/etc/resolvconf/resolv.conf.d/base
171 File containing basic resolver information.
172 The lines in this file are included in the resolver configuration file
173 even when no interfaces are configured.
175 .I %%PREFIX%%/etc/resolvconf/resolv.conf.d/head
176 File to be prepended to the dynamically generated resolver configuration file.
177 Normally this is just a comment line.
179 .I %%PREFIX%%/etc/resolvconf/reslov.conf.d/tail
180 File to be appended to the dynamically generated resolver configuration file.
181 To append nothing, make this an empty file.
185 does not check the sanity of the information provided to it.
187 Written by Roy Marples <roy@marples.name>.
189 Heavily based on Debians resolvconf by Thomas Hood <jdthood_AT_yahoo.co.uk>
191 Copyright \(co 2007 Roy Marples