]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/openresolv/resolvconf.conf.5.in
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / openresolv / resolvconf.conf.5.in
1 .\" Copyright (c) 2009-2010 Roy Marples
2 .\" All rights reserved
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
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.
12 .\"
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
23 .\" SUCH DAMAGE.
24 .\"
25 .Dd October 29, 2010
26 .Dt RESOLVCONF.CONF 5 SMM
27 .Os
28 .Sh NAME
29 .Nm resolvconf.conf
30 .Nd resolvconf configuration file
31 .Sh DESCRIPTION
32 .Nm
33 is the configuration file for
34 .Xr resolvconf 8 .
35 The
36 .Nm
37 file is a shell script that is sourced by
38 .Xr resolvconf 8 ,
39 meaning that
40 .Nm
41 must contain valid shell commands.
42 Listed below are the standard
43 .Nm
44 variables that may be set.
45 .Pp
46 After updating this file, you may wish to run
47 .Nm resolvconf -u
48 to apply the new configuration.
49 .Sh RESOLVCONF OPTIONS
50 .Bl -tag -width indent
51 .It Sy interface_order
52 These interfaces will always be processed first.
53 If unset, defaults to the following:-
54 .D1 lo lo[0-9]*
55 .It Sy dynamic_order
56 These interfaces will be processed next, unless they have a metric.
57 If unset, defaults to the following:-
58 .D1 tap[0-9]* tun[0-9]* vpn vpn[0-9]* ppp[0-9]* ippp[0-9]*
59 .It Sy search_domains
60 Prepend search domains to the dynamically generated list.
61 .It Sy search_domains_append
62 Append search domains to the dynamically generated list.
63 .It Sy name_servers
64 Prepend name servers to the dynamically generated list.
65 You should set this to 127.0.0.1 if you use a local name server other than
66 libc.
67 .It Sy name_servers_append
68 Append name servers to the dynamically generated list.
69 .It Sy private_interfaces
70 These interfaces name servers will only be queried for the domains listed
71 in their resolv.conf.
72 Useful for VPN domains.
73 This is equivalent to the
74 .Nm resolvconf -p
75 option.
76 .It Sy state_dir
77 Override the default state directory of
78 .Pa @VARDIR@ .
79 This should not be changed once
80 .Nm resolvconf
81 is in use unless the old directory is copied to the new one.
82 .El
83 .Sh LIBC OPTIONS
84 The following variables affect
85 .Xr resolv.conf 5
86 directly:-
87 .Bl -tag -width indent
88 .It Sy resolv_conf
89 Defaults to
90 .Pa /etc/resolv.conf
91 if not set.
92 .It Sy resolv_conf_options
93 A list of libc resolver options, as specified in
94 .Xr resolv.conf 5 .
95 .It Sy resolv_conf_passthrough
96 When set to YES the latest resolv.conf is written to
97 .Sy resolv_conf
98 without any alteration.
99 .El
100 .Sh SUBSCRIBER OPTIONS
101 openresolv ships with subscribers for the name servers
102 .Xr dnsmasq 8 ,
103 .Xr named 8 ,
104 .Xr pdnsd 8
105 and
106 .Xr unbound 8 .
107 Each subscriber can create configuration files which should be included in
108 in the subscribers main configuration file.
109 .Bl -tag -width indent
110 .It Sy dnsmasq_conf
111 This file tells dnsmasq which nameservers to use for specific domains.
112 .It Sy dnsmasq_resolv
113 This file tells dnsmasq which nameservers to use for global lookups.
114 .Pp
115 Example resolvconf.conf for dnsmasq:
116 .D1 name_servers=127.0.0.1
117 .D1 dnsmasq_conf=/etc/dnsmasq-conf.conf
118 .D1 dnsmasq_resolv=/etc/dnsmasq-resolv.conf
119 .Pp
120 Example dnsmasq.conf:
121 .D1 listen-address=127.0.0.1
122 .D1 conf-file=/etc/dnsmasq-conf.conf
123 .D1 resolv-file=/etc/dnsmasq-resolv.conf
124 .It Sy named_options
125 Include this file in the named options block.
126 This file tells named which nameservers to use for global lookups.
127 .It Sy named_zones
128 Include this file in the named global scope, after the options block.
129 This file tells named which nameservers to use for specific domains.
130 .Pp
131 Example resolvconf.conf for named:
132 .D1 name_servers=127.0.0.1
133 .D1 named_options=/etc/named-options.conf
134 .D1 named_zones=/etc/named-zones.conf
135 .Pp
136 Example named.conf:
137 .D1 options {
138 .D1     listen-on { 127.0.0.1; };
139 .D1     include "/etc/named-options.conf";
140 .D1 };
141 .D1 include "/etc/named-zones.conf";
142 .It Sy pdnsd_conf
143 This is the main pdnsd configuration file which we modify to add our
144 forward domains to.
145 If this variable is not set then we rely on the pdnsd configuration file
146 setup to read
147 .Pa pdnsd_resolv
148 as documented below.
149 .It Sy pdnsd_resolv
150 This file tells pdnsd about global nameservers.
151 If this variable is not set then it's written to
152 .Pa pdnsd_conf .
153 .Pp
154 Example resolvconf.conf for pdnsd:
155 .D1 name_servers=127.0.0.1
156 .D1 pdnsd_conf=/etc/pdnsd.conf
157 .D1 # pdnsd_resolv=/etc/pdnsd-resolv.conf
158 .Pp
159 Example pdnsd.conf:
160 .D1 global {
161 .D1     server_ip = 127.0.0.1;
162 .D1     status_ctl = on;
163 .D1 }
164 .D1 server {
165 .D1     # A server definition is required, even if emtpy.
166 .D1     label="empty";
167 .D1     proxy_only=on;
168 .D1     # file="/etc/pdnsd-resolv.conf";
169 .D1 }
170 .It Sy unbound_conf
171 This file tells unbound about specific and global nameservers.
172 .Pp
173 Example resolvconf.conf for unbound:
174 .D1 name_servers=127.0.0.1
175 .D1 unbound_conf=/etc/unbound-resolvconf.conf
176 .Pp
177 Example unbound.conf:
178 .D1 include: /etc/unbound-resolvconf.conf
179 .El
180 .Sh SEE ALSO
181 .Xr resolv.conf 5
182 and
183 .Xr resolvconf 8 .
184 .Sh AUTHORS
185 .An Roy Marples Aq roy@marples.name
186 .Sh BUGS
187 Please report them to http://roy.marples.name/projects/openresolv