1c364f334SPedro F. Giffuni.\" Copyright (c) 2009-2016 Roy Marples 2587392a5SHajimu UMEMOTO.\" All rights reserved 3587392a5SHajimu UMEMOTO.\" 4587392a5SHajimu UMEMOTO.\" Redistribution and use in source and binary forms, with or without 5587392a5SHajimu UMEMOTO.\" modification, are permitted provided that the following conditions 6587392a5SHajimu UMEMOTO.\" are met: 7587392a5SHajimu UMEMOTO.\" 1. Redistributions of source code must retain the above copyright 8587392a5SHajimu UMEMOTO.\" notice, this list of conditions and the following disclaimer. 9587392a5SHajimu UMEMOTO.\" 2. Redistributions in binary form must reproduce the above copyright 10587392a5SHajimu UMEMOTO.\" notice, this list of conditions and the following disclaimer in the 11587392a5SHajimu UMEMOTO.\" documentation and/or other materials provided with the distribution. 12587392a5SHajimu UMEMOTO.\" 13587392a5SHajimu UMEMOTO.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14587392a5SHajimu UMEMOTO.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15587392a5SHajimu UMEMOTO.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16587392a5SHajimu UMEMOTO.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17587392a5SHajimu UMEMOTO.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18587392a5SHajimu UMEMOTO.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19587392a5SHajimu UMEMOTO.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20587392a5SHajimu UMEMOTO.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21587392a5SHajimu UMEMOTO.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22587392a5SHajimu UMEMOTO.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23587392a5SHajimu UMEMOTO.\" SUCH DAMAGE. 24587392a5SHajimu UMEMOTO.\" 25*9af6c78cSPedro F. Giffuni.Dd September 8, 2019 26d7149f4eSGlen Barber.Dt RESOLVCONF.CONF 5 27587392a5SHajimu UMEMOTO.Os 28587392a5SHajimu UMEMOTO.Sh NAME 29587392a5SHajimu UMEMOTO.Nm resolvconf.conf 30587392a5SHajimu UMEMOTO.Nd resolvconf configuration file 31587392a5SHajimu UMEMOTO.Sh DESCRIPTION 32587392a5SHajimu UMEMOTO.Nm 33587392a5SHajimu UMEMOTOis the configuration file for 34587392a5SHajimu UMEMOTO.Xr resolvconf 8 . 35587392a5SHajimu UMEMOTOThe 36587392a5SHajimu UMEMOTO.Nm 37587392a5SHajimu UMEMOTOfile is a shell script that is sourced by 38587392a5SHajimu UMEMOTO.Xr resolvconf 8 , 39587392a5SHajimu UMEMOTOmeaning that 40587392a5SHajimu UMEMOTO.Nm 41587392a5SHajimu UMEMOTOmust contain valid shell commands. 42587392a5SHajimu UMEMOTOListed below are the standard 43587392a5SHajimu UMEMOTO.Nm 44587392a5SHajimu UMEMOTOvariables that may be set. 45c364f334SPedro F. GiffuniIf the values contain whitespace, wildcards or other special shell characters, 46d7149f4eSGlen Barberensure they are quoted and escaped correctly. 47c364f334SPedro F. GiffuniSee the 48c364f334SPedro F. Giffuni.Sy replace 49c364f334SPedro F. Giffunivariable for an example on quoting. 50587392a5SHajimu UMEMOTO.Pp 5148855ec7SHajimu UMEMOTOAfter updating this file, you may wish to run 52587392a5SHajimu UMEMOTO.Nm resolvconf -u 53587392a5SHajimu UMEMOTOto apply the new configuration. 54d7149f4eSGlen Barber.Pp 55d7149f4eSGlen BarberWhen a dynamically generated list is appended or prepended to, the whole 56d7149f4eSGlen Barberis made unique where left-most wins. 57587392a5SHajimu UMEMOTO.Sh RESOLVCONF OPTIONS 58587392a5SHajimu UMEMOTO.Bl -tag -width indent 59d7149f4eSGlen Barber.It Sy resolvconf 60d7149f4eSGlen BarberSet to NO to disable 61d7149f4eSGlen Barber.Nm resolvconf 62d7149f4eSGlen Barberfrom running any subscribers. 63d7149f4eSGlen BarberDefaults to YES. 64587392a5SHajimu UMEMOTO.It Sy interface_order 65587392a5SHajimu UMEMOTOThese interfaces will always be processed first. 66587392a5SHajimu UMEMOTOIf unset, defaults to the following:- 67*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 68*9af6c78cSPedro F. Giffunilo lo[0-9]* 69*9af6c78cSPedro F. Giffuni.Ed 70587392a5SHajimu UMEMOTO.It Sy dynamic_order 71587392a5SHajimu UMEMOTOThese interfaces will be processed next, unless they have a metric. 72587392a5SHajimu UMEMOTOIf unset, defaults to the following:- 73*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 74*9af6c78cSPedro F. Giffunitap[0-9]* tun[0-9]* vpn vpn[0-9]* ppp[0-9]* ippp[0-9]* 75*9af6c78cSPedro F. Giffuni.Ed 7687b2cfceSPedro F. Giffuni.It Sy inclusive_interfaces 77*9af6c78cSPedro F. GiffuniIgnore any exclusive marking for these interfaces. 7887b2cfceSPedro F. GiffuniThis is handy when 3rd party integrations force the 7987b2cfceSPedro F. Giffuni.Nm resolvconf -x 8087b2cfceSPedro F. Giffunioption and you want to disable it easily. 81d7149f4eSGlen Barber.It Sy local_nameservers 82d7149f4eSGlen BarberIf unset, defaults to the following:- 83*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 84*9af6c78cSPedro F. Giffuni127.* 0.0.0.0 255.255.255.255 ::1 85*9af6c78cSPedro F. Giffuni.Ed 86587392a5SHajimu UMEMOTO.It Sy search_domains 87587392a5SHajimu UMEMOTOPrepend search domains to the dynamically generated list. 88587392a5SHajimu UMEMOTO.It Sy search_domains_append 89587392a5SHajimu UMEMOTOAppend search domains to the dynamically generated list. 90d7149f4eSGlen Barber.It Sy domain_blacklist 91d7149f4eSGlen BarberA list of domains to be removed from consideration. 92d7149f4eSGlen BarberTo remove a domain, you can use foo.* 93d7149f4eSGlen BarberTo remove a sub domain, you can use *.bar 94587392a5SHajimu UMEMOTO.It Sy name_servers 95587392a5SHajimu UMEMOTOPrepend name servers to the dynamically generated list. 96587392a5SHajimu UMEMOTOYou should set this to 127.0.0.1 if you use a local name server other than 97587392a5SHajimu UMEMOTOlibc. 98587392a5SHajimu UMEMOTO.It Sy name_servers_append 99587392a5SHajimu UMEMOTOAppend name servers to the dynamically generated list. 100d7149f4eSGlen Barber.It Sy name_server_blacklist 101d7149f4eSGlen BarberA list of name servers to be removed from consideration. 102d7149f4eSGlen BarberThe default is 0.0.0.0 as some faulty routers send it via DHCP. 103d7149f4eSGlen BarberTo remove a block, you can use 192.168.* 104587392a5SHajimu UMEMOTO.It Sy private_interfaces 105587392a5SHajimu UMEMOTOThese interfaces name servers will only be queried for the domains listed 106587392a5SHajimu UMEMOTOin their resolv.conf. 107587392a5SHajimu UMEMOTOUseful for VPN domains. 1082d004dd5SPedro F. GiffuniSetting 1092d004dd5SPedro F. Giffuni.Sy private_interfaces Ns ="*" 1102d004dd5SPedro F. Giffuniwill stop the forwarding of the root zone and allows the local resolver to 1112d004dd5SPedro F. Giffunirecursively query the root servers directly. 1122d004dd5SPedro F. GiffuniRequires a local nameserver other than libc. 113587392a5SHajimu UMEMOTOThis is equivalent to the 114587392a5SHajimu UMEMOTO.Nm resolvconf -p 115587392a5SHajimu UMEMOTOoption. 11687b2cfceSPedro F. Giffuni.It Sy public_interfaces 11787b2cfceSPedro F. GiffuniForce these interface to be public, overriding the private marking. 11887b2cfceSPedro F. GiffuniThis is handy when 3rd party integrations force the 11987b2cfceSPedro F. Giffuni.Nm resolvconf -p 12087b2cfceSPedro F. Giffunioption and you want to disable it easily. 121d7149f4eSGlen Barber.It Sy replace 1223f2a60a1SPedro F. GiffuniIs a space separated list of replacement keywords. 1233f2a60a1SPedro F. GiffuniThe syntax is this: 124d7149f4eSGlen Barber.Va $keyword Ns / Ns Va $match Ns / Ns Va $replacement 125d7149f4eSGlen Barber.Pp 126d7149f4eSGlen BarberExample, given this resolv.conf: 127*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 128*9af6c78cSPedro F. Giffunidomain foo.org 129*9af6c78cSPedro F. Giffunisearch foo.org dead.beef 130*9af6c78cSPedro F. Giffuninameserver 1.2.3.4 131*9af6c78cSPedro F. Giffuninameserver 2.3.4.5 132*9af6c78cSPedro F. Giffuni.Ed 133d7149f4eSGlen Barberand this configuaration: 134*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 135*9af6c78cSPedro F. Giffunireplace="search/foo*/bar.com" 136*9af6c78cSPedro F. Giffunireplace="$replace nameserver/1.2.3.4/5.6.7.8" 137*9af6c78cSPedro F. Giffunireplace="$replace nameserver/2.3.4.5/" 138*9af6c78cSPedro F. Giffuni.Ed 139d7149f4eSGlen Barberyou would get this resolv.conf instead: 140*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 141*9af6c78cSPedro F. Giffunidomain foo.org 142*9af6c78cSPedro F. Giffunisearch bar.com 143*9af6c78cSPedro F. Giffuninameserver 5.6.7.8 144*9af6c78cSPedro F. Giffuni.Ed 145d7149f4eSGlen Barber.It Sy replace_sub 146d7149f4eSGlen BarberWorks the same way as 147d7149f4eSGlen Barber.Sy replace 148d7149f4eSGlen Barberexcept it works on each space separated value rather than the whole line, 149d7149f4eSGlen Barberso it's useful for the replacing a single domain within the search directive. 150d7149f4eSGlen BarberUsing the same example resolv.conf and changing 151d7149f4eSGlen Barber.Sy replace 152d7149f4eSGlen Barberto 153d7149f4eSGlen Barber.Sy replace_sub , 154d7149f4eSGlen Barberyou would get this resolv.conf instead: 155*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 156*9af6c78cSPedro F. Giffunidomain foo.org 157*9af6c78cSPedro F. Giffunisearch bar.com dead.beef 158*9af6c78cSPedro F. Giffuninameserver 5.6.7.8 159*9af6c78cSPedro F. Giffuni.Ed 160587392a5SHajimu UMEMOTO.It Sy state_dir 161587392a5SHajimu UMEMOTOOverride the default state directory of 162587392a5SHajimu UMEMOTO.Pa @VARDIR@ . 163587392a5SHajimu UMEMOTOThis should not be changed once 164587392a5SHajimu UMEMOTO.Nm resolvconf 165587392a5SHajimu UMEMOTOis in use unless the old directory is copied to the new one. 166587392a5SHajimu UMEMOTO.El 167587392a5SHajimu UMEMOTO.Sh LIBC OPTIONS 168587392a5SHajimu UMEMOTOThe following variables affect 169587392a5SHajimu UMEMOTO.Xr resolv.conf 5 170587392a5SHajimu UMEMOTOdirectly:- 171587392a5SHajimu UMEMOTO.Bl -tag -width indent 172587392a5SHajimu UMEMOTO.It Sy resolv_conf 173587392a5SHajimu UMEMOTODefaults to 174587392a5SHajimu UMEMOTO.Pa /etc/resolv.conf 175587392a5SHajimu UMEMOTOif not set. 176587392a5SHajimu UMEMOTO.It Sy resolv_conf_options 177587392a5SHajimu UMEMOTOA list of libc resolver options, as specified in 178587392a5SHajimu UMEMOTO.Xr resolv.conf 5 . 179587392a5SHajimu UMEMOTO.It Sy resolv_conf_passthrough 180587392a5SHajimu UMEMOTOWhen set to YES the latest resolv.conf is written to 181587392a5SHajimu UMEMOTO.Sy resolv_conf 182587392a5SHajimu UMEMOTOwithout any alteration. 183d7149f4eSGlen BarberWhen set to /dev/null or NULL, 184d7149f4eSGlen Barber.Sy resolv_conf_local_only 185d7149f4eSGlen Barberis defaulted to NO, 186d7149f4eSGlen Barber.Sy local_nameservers 1872d004dd5SPedro F. Giffuniis unset unless overridden and only the information set in 188d7149f4eSGlen Barber.Nm 189d7149f4eSGlen Barberis written to 190d7149f4eSGlen Barber.Sy resolv_conf . 191d7149f4eSGlen Barber.It Sy resolv_conf_sortlist 192d7149f4eSGlen BarberA libc resolver sortlist, as specified in 193d7149f4eSGlen Barber.Xr resolv.conf 5 . 194d7149f4eSGlen Barber.It Sy resolv_conf_local_only 195d7149f4eSGlen BarberIf a local name server is configured then the default is just to specify that 196d7149f4eSGlen Barberand ignore all other entries as they will be configured for the local 197d7149f4eSGlen Barbername server. 198d7149f4eSGlen BarberSet this to NO to also list non-local nameservers. 199d7149f4eSGlen BarberThis will give you working DNS even if the local nameserver stops functioning 200d7149f4eSGlen Barberat the expense of duplicated server queries. 201d7149f4eSGlen Barber.It Sy append_nameservers 202d7149f4eSGlen BarberAppend name servers to the dynamically generated list. 203d7149f4eSGlen Barber.It Sy prepend_nameservers 204d7149f4eSGlen BarberPrepend name servers to the dynamically generated list. 205d7149f4eSGlen Barber.It Sy append_search 206d7149f4eSGlen BarberAppend search domains to the dynamically generated list. 207d7149f4eSGlen Barber.It Sy prepend_search 208d7149f4eSGlen BarberPrepend search domains to the dynamically generated list. 209587392a5SHajimu UMEMOTO.El 210587392a5SHajimu UMEMOTO.Sh SUBSCRIBER OPTIONS 211587392a5SHajimu UMEMOTOopenresolv ships with subscribers for the name servers 212587392a5SHajimu UMEMOTO.Xr dnsmasq 8 , 213587392a5SHajimu UMEMOTO.Xr named 8 , 214*9af6c78cSPedro F. Giffuni.Xr pdnsd 8 , 215*9af6c78cSPedro F. Giffuni.Xr pdns_recursor 8 , 216587392a5SHajimu UMEMOTOand 217587392a5SHajimu UMEMOTO.Xr unbound 8 . 218587392a5SHajimu UMEMOTOEach subscriber can create configuration files which should be included in 219587392a5SHajimu UMEMOTOin the subscribers main configuration file. 220d7149f4eSGlen Barber.Pp 221d7149f4eSGlen BarberTo disable a subscriber, simply set it's name to NO. 222d7149f4eSGlen BarberFor example, to disable the libc subscriber you would set: 223*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 224*9af6c78cSPedro F. Giffunilibc=NO 225*9af6c78cSPedro F. Giffuni.Ed 226587392a5SHajimu UMEMOTO.Bl -tag -width indent 227587392a5SHajimu UMEMOTO.It Sy dnsmasq_conf 228587392a5SHajimu UMEMOTOThis file tells dnsmasq which name servers to use for specific domains. 229587392a5SHajimu UMEMOTO.It Sy dnsmasq_resolv 230587392a5SHajimu UMEMOTOThis file tells dnsmasq which name servers to use for global lookups. 231587392a5SHajimu UMEMOTO.Pp 232587392a5SHajimu UMEMOTOExample resolvconf.conf for dnsmasq: 233*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 234*9af6c78cSPedro F. Giffuniname_servers=127.0.0.1 235*9af6c78cSPedro F. Giffunidnsmasq_conf=/etc/dnsmasq-conf.conf 236*9af6c78cSPedro F. Giffunidnsmasq_resolv=/etc/dnsmasq-resolv.conf 237*9af6c78cSPedro F. Giffuni.Ed 238587392a5SHajimu UMEMOTO.Pp 239587392a5SHajimu UMEMOTOExample dnsmasq.conf: 240*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 241*9af6c78cSPedro F. Giffunilisten-address=127.0.0.1 242*9af6c78cSPedro F. Giffuni# If dnsmasq is compiled for DBus then we can take 243*9af6c78cSPedro F. Giffuni# advantage of not having to restart dnsmasq. 244*9af6c78cSPedro F. Giffunienable-dbus 245*9af6c78cSPedro F. Giffuniconf-file=/etc/dnsmasq-conf.conf 246*9af6c78cSPedro F. Giffuniresolv-file=/etc/dnsmasq-resolv.conf 247*9af6c78cSPedro F. Giffuni.Ed 248587392a5SHajimu UMEMOTO.It Sy named_options 249587392a5SHajimu UMEMOTOInclude this file in the named options block. 250587392a5SHajimu UMEMOTOThis file tells named which name servers to use for global lookups. 251587392a5SHajimu UMEMOTO.It Sy named_zones 252587392a5SHajimu UMEMOTOInclude this file in the named global scope, after the options block. 253587392a5SHajimu UMEMOTOThis file tells named which name servers to use for specific domains. 254587392a5SHajimu UMEMOTO.Pp 255587392a5SHajimu UMEMOTOExample resolvconf.conf for named: 256*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 257*9af6c78cSPedro F. Giffuniname_servers=127.0.0.1 258*9af6c78cSPedro F. Giffuninamed_options=/etc/named-options.conf 259*9af6c78cSPedro F. Giffuninamed_zones=/etc/named-zones.conf 260*9af6c78cSPedro F. Giffuni.Ed 261587392a5SHajimu UMEMOTO.Pp 262587392a5SHajimu UMEMOTOExample named.conf: 263*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 264*9af6c78cSPedro F. Giffunioptions { 265*9af6c78cSPedro F. Giffuni listen-on { 127.0.0.1; }; 266*9af6c78cSPedro F. Giffuni include "/etc/named-options.conf"; 267*9af6c78cSPedro F. Giffuni}; 268*9af6c78cSPedro F. Giffuni 269*9af6c78cSPedro F. Giffuniinclude "/etc/named-zones.conf"; 270*9af6c78cSPedro F. Giffuni.Ed 271587392a5SHajimu UMEMOTO.It Sy pdnsd_conf 272587392a5SHajimu UMEMOTOThis is the main pdnsd configuration file which we modify to add our 273587392a5SHajimu UMEMOTOforward domains to. 274587392a5SHajimu UMEMOTOIf this variable is not set then we rely on the pdnsd configuration file 275587392a5SHajimu UMEMOTOsetup to read 276587392a5SHajimu UMEMOTO.Pa pdnsd_resolv 277587392a5SHajimu UMEMOTOas documented below. 278587392a5SHajimu UMEMOTO.It Sy pdnsd_resolv 279587392a5SHajimu UMEMOTOThis file tells pdnsd about global name servers. 280587392a5SHajimu UMEMOTOIf this variable is not set then it's written to 281587392a5SHajimu UMEMOTO.Pa pdnsd_conf . 282587392a5SHajimu UMEMOTO.Pp 283587392a5SHajimu UMEMOTOExample resolvconf.conf for pdnsd: 284*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 285*9af6c78cSPedro F. Giffuniname_servers=127.0.0.1 286*9af6c78cSPedro F. Giffunipdnsd_conf=/etc/pdnsd.conf 287*9af6c78cSPedro F. Giffuni# pdnsd_resolv=/etc/pdnsd-resolv.conf 288*9af6c78cSPedro F. Giffuni.Ed 289587392a5SHajimu UMEMOTO.Pp 290587392a5SHajimu UMEMOTOExample pdnsd.conf: 291*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 292*9af6c78cSPedro F. Giffuniglobal { 293*9af6c78cSPedro F. Giffuni server_ip = 127.0.0.1; 294*9af6c78cSPedro F. Giffuni status_ctl = on; 295*9af6c78cSPedro F. Giffuni} 296*9af6c78cSPedro F. Giffuniserver { 297*9af6c78cSPedro F. Giffuni # A server definition is required, even if empty. 298*9af6c78cSPedro F. Giffuni label="empty"; 299*9af6c78cSPedro F. Giffuni proxy_only=on; 300*9af6c78cSPedro F. Giffuni # file="/etc/pdnsd-resolv.conf"; 301*9af6c78cSPedro F. Giffuni} 302*9af6c78cSPedro F. Giffuni.Ed 303*9af6c78cSPedro F. Giffuni.It Sy pdns_zones 304*9af6c78cSPedro F. GiffuniThis file tells pdns_recursor about specific and global name servers. 305*9af6c78cSPedro F. Giffuni.Pp 306*9af6c78cSPedro F. GiffuniExample resolvconf.conf for pdns_recursor: 307*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 308*9af6c78cSPedro F. Giffuniname_servers=127.0.0.1 309*9af6c78cSPedro F. Giffunipdns_zones=/etc/pdns/recursor-zones.conf 310*9af6c78cSPedro F. Giffuni.Ed 311*9af6c78cSPedro F. Giffuni.Pp 312*9af6c78cSPedro F. GiffuniExample recursor.conf: 313*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 314*9af6c78cSPedro F. Giffuniallow-from=127.0.0.0/8, ::1/128 315*9af6c78cSPedro F. Giffuniforward-zones-file=/etc/pdns/recursor-zones.conf 316*9af6c78cSPedro F. Giffuni.Ed 317587392a5SHajimu UMEMOTO.It Sy unbound_conf 318587392a5SHajimu UMEMOTOThis file tells unbound about specific and global name servers. 319d7149f4eSGlen Barber.It Sy unbound_insecure 320d7149f4eSGlen BarberWhen set to YES, unbound marks the domains as insecure, thus ignoring DNSSEC. 321587392a5SHajimu UMEMOTO.Pp 322587392a5SHajimu UMEMOTOExample resolvconf.conf for unbound: 323*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 324*9af6c78cSPedro F. Giffuniname_servers=127.0.0.1 325*9af6c78cSPedro F. Giffuniunbound_conf=/etc/unbound-resolvconf.conf 326*9af6c78cSPedro F. Giffuni.Ed 327587392a5SHajimu UMEMOTO.Pp 328587392a5SHajimu UMEMOTOExample unbound.conf: 329*9af6c78cSPedro F. Giffuni.Bd -compact -literal -offset indent 330*9af6c78cSPedro F. Giffuniinclude: /etc/unbound-resolvconf.conf 331*9af6c78cSPedro F. Giffuni.Ed 332587392a5SHajimu UMEMOTO.El 333d7149f4eSGlen Barber.Sh SUBSCRIBER INTEGRATION 334d7149f4eSGlen BarberNot all distributions store the files the subscribers need in the same 335d7149f4eSGlen Barberlocations. 336d7149f4eSGlen BarberFor example, named service scripts have been called named, bind and rc.bind 337d7149f4eSGlen Barberand they could be located in a directory called /etc/rc.d, /etc/init.d or 338d7149f4eSGlen Barbersimilar. 339d7149f4eSGlen BarberEach subscriber attempts to automatically configure itself, but not every 340d7149f4eSGlen Barberdistribution has been catered for. 341d7149f4eSGlen BarberAlso, users could equally want to use a different version from the one 342d7149f4eSGlen Barberinstalled by default, such as bind8 and bind9. 3432d004dd5SPedro F. GiffuniTo accommodate this, the subscribers have these files in configurable 344d7149f4eSGlen Barbervariables, documented below. 345d7149f4eSGlen Barber.Bl -tag -width indent 346d7149f4eSGlen Barber.It Sy dnsmasq_service 3473f2a60a1SPedro F. GiffuniName of the dnsmasq service. 348d7149f4eSGlen Barber.It Sy dnsmasq_restart 349d7149f4eSGlen BarberCommand to restart the dnsmasq service. 350d7149f4eSGlen Barber.It Sy dnsmasq_pid 351d7149f4eSGlen BarberLocation of the dnsmasq pidfile. 352d7149f4eSGlen Barber.It Sy libc_service 3533f2a60a1SPedro F. GiffuniName of the libc service. 354d7149f4eSGlen Barber.It Sy libc_restart 355d7149f4eSGlen BarberCommand to restart the libc service. 356d7149f4eSGlen Barber.It Sy named_service 3573f2a60a1SPedro F. GiffuniName of the named service. 358d7149f4eSGlen Barber.It Sy named_restart 359d7149f4eSGlen BarberCommand to restart the named service. 360d7149f4eSGlen Barber.It Sy pdnsd_restart 361d7149f4eSGlen BarberCommand to restart the pdnsd service. 362*9af6c78cSPedro F. Giffuni.It Sy pdns_service 363*9af6c78cSPedro F. GiffuniCommand to restart the pdns_recursor service. 364*9af6c78cSPedro F. Giffuni.It Sy pdns_restart 365*9af6c78cSPedro F. GiffuniCommand to restart the pdns_recursor service. 366d7149f4eSGlen Barber.It Sy unbound_service 3673f2a60a1SPedro F. GiffuniName of the unbound service. 368d7149f4eSGlen Barber.It Sy unbound_restart 369d7149f4eSGlen BarberCommand to restart the unbound service. 370d7149f4eSGlen Barber.It Sy unbound_pid 371d7149f4eSGlen BarberLocation of the unbound pidfile. 372d7149f4eSGlen Barber.El 373587392a5SHajimu UMEMOTO.Sh SEE ALSO 3743f2a60a1SPedro F. Giffuni.Xr sh 1 , 375d7149f4eSGlen Barber.Xr resolv.conf 5 , 376d7149f4eSGlen Barber.Xr resolvconf 8 377587392a5SHajimu UMEMOTO.Sh AUTHORS 378d7149f4eSGlen Barber.An Roy Marples Aq Mt roy@marples.name 379587392a5SHajimu UMEMOTO.Sh BUGS 380d7149f4eSGlen BarberEach distribution is a special snowflake and likes to name the same thing 381d7149f4eSGlen Barberdifferently, namely the named service script. 382d7149f4eSGlen Barber.Pp 383d7149f4eSGlen BarberPlease report them to 384d7149f4eSGlen Barber.Lk http://roy.marples.name/projects/openresolv 385