[d224244f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY unbound-download-http "http://www.unbound.net/downloads/unbound-&unbound-version;.tar.gz">
|
---|
| 8 | <!ENTITY unbound-download-ftp " ">
|
---|
[b6ff9d3f] | 9 | <!ENTITY unbound-md5sum "59728c74fef8783f8bad1d7451eba97f">
|
---|
| 10 | <!ENTITY unbound-size "4.6 MB">
|
---|
| 11 | <!ENTITY unbound-buildsize "42 MB (additional 70 MB for docs and 5 MB for tests)">
|
---|
| 12 | <!ENTITY unbound-time "0.6 SBU (additional less than 0.1 SBU for docs and 0.2 SBU for tests)">
|
---|
[d224244f] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="unbound" xreflabel="Unbound-&unbound-version;">
|
---|
| 16 | <?dbhtml filename="unbound.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy: igor $</othername>
|
---|
| 20 | <date>$Date: 2013-07-21 21:06:50 +0200 (Sun, 21 Jul 2013) $</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Unbound-&unbound-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="unbound">
|
---|
| 26 | <primary sortas="a-Unbound">Unbound</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Unbound</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | <application>Unbound</application> is a validating, recursive, and caching
|
---|
| 34 | DNS resolver. It is designed as a set of modular components that
|
---|
| 35 | incorporate modern features, such as enhanced security (DNSSEC)
|
---|
| 36 | validation, Internet Protocol Version 6 (IPv6), and a client resolver
|
---|
| 37 | library API as an integral part of the architecture.
|
---|
| 38 | </para>
|
---|
| 39 |
|
---|
[b3e198d1] | 40 | &lfs75_checked;
|
---|
[d224244f] | 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&unbound-download-http;"/>
|
---|
| 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&unbound-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download MD5 sum: &unbound-md5sum;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Download size: &unbound-size;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Estimated disk space required: &unbound-buildsize;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>
|
---|
| 71 | Estimated build time: &unbound-time;
|
---|
| 72 | </para>
|
---|
| 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect3">Unbound Dependencies</bridgehead>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 79 | <para role="required">
|
---|
[56605b9] | 80 | <xref linkend="ldns"/> and
|
---|
[d224244f] | 81 | <xref linkend="openssl"/>
|
---|
[1b472ab] | 82 | <!-- broken?
|
---|
| 83 | or <xref linkend="nss"/>
|
---|
| 84 | -->
|
---|
[d224244f] | 85 | </para>
|
---|
| 86 |
|
---|
| 87 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 88 | <para role="optional">
|
---|
| 89 | <xref linkend="libevent"/>,
|
---|
[283bd88] | 90 | <xref linkend="python2"/>,
|
---|
[7dfb8c9] | 91 | <xref linkend="swig"/> (for Python bindings), and
|
---|
[d224244f] | 92 | <xref linkend="doxygen"/> (for html documentation)
|
---|
| 93 | </para>
|
---|
| 94 |
|
---|
| 95 | <para condition="html" role="usernotes">User Notes:
|
---|
| 96 | <ulink url="&blfs-wiki;/unbound"/>
|
---|
| 97 | </para>
|
---|
| 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2 role="installation">
|
---|
| 101 | <title>Installation of Unbound</title>
|
---|
| 102 |
|
---|
| 103 | <para>
|
---|
| 104 | There should be a dedicated user and group to take control of the
|
---|
| 105 | <command>unbound</command> daemon after it is started. Issue the following
|
---|
| 106 | commands as the <systemitem class="username">root</systemitem> user:
|
---|
| 107 | </para>
|
---|
| 108 |
|
---|
| 109 | <screen role="root"><userinput>groupadd -g 88 unbound &&
|
---|
| 110 | useradd -c "Unbound DNS resolver" -d /var/lib/unbound -u 88 \
|
---|
| 111 | -g unbound -s /bin/false unbound</userinput></screen>
|
---|
| 112 |
|
---|
| 113 | <para>
|
---|
| 114 | Install <application>Unbound</application> by running the following
|
---|
| 115 | commands:
|
---|
| 116 | </para>
|
---|
| 117 |
|
---|
[283bd88] | 118 | <screen><userinput>./configure --prefix=/usr \
|
---|
[d224244f] | 119 | --sysconfdir=/etc \
|
---|
[283bd88] | 120 | --disable-static \
|
---|
| 121 | --with-pidfile=/run/unbound.pid &&
|
---|
[d224244f] | 122 | make</userinput></screen>
|
---|
| 123 |
|
---|
| 124 | <para>
|
---|
| 125 | If you have <xref linkend="doxygen"/> package installed and want to build
|
---|
| 126 | html documentation, run the following command:
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
| 129 | <screen><userinput>make doc</userinput></screen>
|
---|
| 130 |
|
---|
| 131 | <para>To test the results, issue <command>make check</command>.</para>
|
---|
| 132 |
|
---|
| 133 | <para>
|
---|
| 134 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 135 | </para>
|
---|
| 136 |
|
---|
| 137 | <screen role="root"><userinput>make install &&
|
---|
[1b472ab] | 138 | mv -v /usr/sbin/unbound-host /usr/bin/</userinput></screen>
|
---|
[d224244f] | 139 |
|
---|
| 140 | <para>
|
---|
| 141 | If you built html documentation, install it by running the following
|
---|
| 142 | commands as the <systemitem class="username">root</systemitem> user:
|
---|
| 143 | </para>
|
---|
| 144 |
|
---|
| 145 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/unbound-&unbound-version; &&
|
---|
| 146 | install -v -m644 doc/html/* /usr/share/doc/unbound-&unbound-version;</userinput></screen>
|
---|
| 147 |
|
---|
| 148 | </sect2>
|
---|
| 149 |
|
---|
| 150 | <sect2 role="commands">
|
---|
| 151 | <title>Command Explanations</title>
|
---|
| 152 |
|
---|
| 153 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 154 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 155 |
|
---|
| 156 | <para>
|
---|
| 157 | <option>--with-libevent</option>: This option enables libevent support
|
---|
| 158 | allowing use of large outgoing port ranges.
|
---|
| 159 | </para>
|
---|
| 160 |
|
---|
| 161 | <para>
|
---|
| 162 | <option>--with-pyunbound</option>: This option enables building of the Python
|
---|
| 163 | bindings.
|
---|
| 164 | </para>
|
---|
| 165 |
|
---|
| 166 | </sect2>
|
---|
| 167 |
|
---|
| 168 | <sect2 role="configuration">
|
---|
| 169 | <title>Configuring Unbound</title>
|
---|
| 170 |
|
---|
| 171 | <sect3 id="unbound-config">
|
---|
| 172 | <title>Config Files</title>
|
---|
| 173 |
|
---|
| 174 | <para><filename>/etc/unbound/unbound.conf</filename></para>
|
---|
| 175 |
|
---|
| 176 | <indexterm zone="unbound unbound-config">
|
---|
| 177 | <primary sortas="e-etc-unbound-unbound.conf">/etc/unbound/unbound.conf</primary>
|
---|
| 178 | </indexterm>
|
---|
| 179 |
|
---|
| 180 | </sect3>
|
---|
| 181 |
|
---|
| 182 | <sect3>
|
---|
| 183 | <title>Configuration Information</title>
|
---|
| 184 |
|
---|
| 185 | <para>
|
---|
| 186 | In the default configuration, <command>unbound</command> will bind to
|
---|
| 187 | localhost (127.0.0.1 IP address) and allow recursive queries only from
|
---|
| 188 | localhost clients. If you want to use <command>unbound</command> for
|
---|
| 189 | local DNS resolution, run the following command as the
|
---|
| 190 | <systemitem class="username">root</systemitem> user:
|
---|
| 191 | </para>
|
---|
| 192 |
|
---|
| 193 | <screen role="root"><userinput>echo "nameserver 127.0.0.1" > /etc/resolv.conf</userinput></screen>
|
---|
| 194 |
|
---|
| 195 | <para>
|
---|
| 196 | If you are using a DHCP client for connecting to a network,
|
---|
| 197 | <filename>/etc/resolv.conf</filename> gets overwritten with values
|
---|
| 198 | provided by DHCP server. You can override this, for example in
|
---|
| 199 | <xref linkend="dhcp"/>, by running the following command:
|
---|
| 200 | </para>
|
---|
| 201 |
|
---|
| 202 | <screen role="root"><userinput>sed -i '/request /i\supersede domain-name-servers 127.0.0.1;' \
|
---|
| 203 | /etc/dhcp/dhclient.conf</userinput></screen>
|
---|
| 204 |
|
---|
| 205 | <para>
|
---|
| 206 | For advanced configuration see <filename>/etc/unbound/unbound.conf</filename>
|
---|
| 207 | file and the documentation.
|
---|
| 208 | </para>
|
---|
| 209 |
|
---|
| 210 | </sect3>
|
---|
| 211 |
|
---|
| 212 | <sect3 id="unbound-init">
|
---|
[608cda6] | 213 | <title>Systemd Units</title>
|
---|
[d224244f] | 214 |
|
---|
[608cda6] | 215 | <para>
|
---|
| 216 | To start the <command>unbound</command> daemon at boot,
|
---|
| 217 | install the systemd unit from the <xref linkend="bootscripts"/>
|
---|
| 218 | package by running the following command as the
|
---|
| 219 | <systemitem class="username">root</systemitem> user:
|
---|
| 220 | </para>
|
---|
[d224244f] | 221 |
|
---|
| 222 | <indexterm zone="unbound unbound-init">
|
---|
| 223 | <primary sortas="f-unbound">unbound</primary>
|
---|
| 224 | </indexterm>
|
---|
| 225 |
|
---|
| 226 | <screen role="root"><userinput>make install-unbound</userinput></screen>
|
---|
| 227 |
|
---|
| 228 | </sect3>
|
---|
| 229 |
|
---|
| 230 | </sect2>
|
---|
| 231 |
|
---|
| 232 | <sect2 role="content">
|
---|
| 233 | <title>Contents</title>
|
---|
| 234 |
|
---|
| 235 | <segmentedlist>
|
---|
| 236 | <segtitle>Installed Programs</segtitle>
|
---|
| 237 | <segtitle>Installed Library</segtitle>
|
---|
| 238 | <segtitle>Installed Directories</segtitle>
|
---|
| 239 |
|
---|
| 240 | <seglistitem>
|
---|
| 241 | <seg>
|
---|
| 242 | unbound, unbound-anchor, unbound-checkconf, unbound-control,
|
---|
[283bd88] | 243 | unbound-control-setup, and unbound-host
|
---|
[d224244f] | 244 | </seg>
|
---|
| 245 | <seg>
|
---|
[b6ff9d3f] | 246 | libunbound.so and
|
---|
| 247 | /usr/lib/python&python2-majorver;/site-packages/_unbound.so
|
---|
[d224244f] | 248 | </seg>
|
---|
| 249 | <seg>
|
---|
| 250 | /etc/unbound and /usr/share/doc/unbound-&unbound-version;
|
---|
| 251 | </seg>
|
---|
| 252 | </seglistitem>
|
---|
| 253 | </segmentedlist>
|
---|
| 254 |
|
---|
| 255 | <variablelist>
|
---|
| 256 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 257 | <?dbfo list-presentation="list"?>
|
---|
| 258 | <?dbhtml list-presentation="table"?>
|
---|
| 259 |
|
---|
| 260 | <varlistentry id="unbound-prog">
|
---|
| 261 | <term><command>unbound</command></term>
|
---|
| 262 | <listitem>
|
---|
| 263 | <para>
|
---|
| 264 | is a DNS resolver daemon.
|
---|
| 265 | </para>
|
---|
| 266 | <indexterm zone="unbound unbound-prog">
|
---|
| 267 | <primary sortas="b-unbound">unbound</primary>
|
---|
| 268 | </indexterm>
|
---|
| 269 | </listitem>
|
---|
| 270 | </varlistentry>
|
---|
| 271 |
|
---|
| 272 | <varlistentry id="unbound-anchor">
|
---|
| 273 | <term><command>unbound-anchor</command></term>
|
---|
| 274 | <listitem>
|
---|
| 275 | <para>
|
---|
| 276 | performs setup or update of the root trust anchor for DNSSEC
|
---|
| 277 | validation.
|
---|
| 278 | </para>
|
---|
| 279 | <indexterm zone="unbound unbound-anchor">
|
---|
| 280 | <primary sortas="b-unbound-anchor">unbound-anchor</primary>
|
---|
| 281 | </indexterm>
|
---|
| 282 | </listitem>
|
---|
| 283 | </varlistentry>
|
---|
| 284 |
|
---|
| 285 | <varlistentry id="unbound-checkconf">
|
---|
| 286 | <term><command>unbound-checkconf</command></term>
|
---|
| 287 | <listitem>
|
---|
| 288 | <para>
|
---|
| 289 | checks <command>unbound</command> configuration file for syntax
|
---|
| 290 | and other errors.
|
---|
| 291 | </para>
|
---|
| 292 | <indexterm zone="unbound unbound-checkconf">
|
---|
| 293 | <primary sortas="b-unbound-checkconf">unbound-checkconf</primary>
|
---|
| 294 | </indexterm>
|
---|
| 295 | </listitem>
|
---|
| 296 | </varlistentry>
|
---|
| 297 |
|
---|
| 298 | <varlistentry id="unbound-control">
|
---|
| 299 | <term><command>unbound-control</command></term>
|
---|
| 300 | <listitem>
|
---|
| 301 | <para>
|
---|
| 302 | performs remote administration on the <command>unbound</command> DNS
|
---|
| 303 | resolver.
|
---|
| 304 | </para>
|
---|
| 305 | <indexterm zone="unbound unbound-control">
|
---|
| 306 | <primary sortas="b-unbound-control">unbound-control</primary>
|
---|
| 307 | </indexterm>
|
---|
| 308 | </listitem>
|
---|
| 309 | </varlistentry>
|
---|
| 310 |
|
---|
| 311 | <varlistentry id="unbound-control-setup">
|
---|
| 312 | <term><command>unbound-control-setup</command></term>
|
---|
| 313 | <listitem>
|
---|
| 314 | <para>
|
---|
| 315 | generates self-signed certificate and private keys for the server
|
---|
| 316 | and client.
|
---|
| 317 | </para>
|
---|
| 318 | <indexterm zone="unbound unbound-control-setup">
|
---|
| 319 | <primary sortas="b-unbound-control-setup">unbound-control-setup</primary>
|
---|
| 320 | </indexterm>
|
---|
| 321 | </listitem>
|
---|
| 322 | </varlistentry>
|
---|
| 323 |
|
---|
| 324 | <varlistentry id="unbound-host">
|
---|
| 325 | <term><command>unbound-host</command></term>
|
---|
| 326 | <listitem>
|
---|
| 327 | <para>
|
---|
| 328 | is a DNS lookup utility similar to <command>host</command> from
|
---|
| 329 | <xref linkend="bind-utils"/>.
|
---|
| 330 | </para>
|
---|
| 331 | <indexterm zone="unbound unbound-host">
|
---|
| 332 | <primary sortas="b-unbound-host">unbound-host</primary>
|
---|
| 333 | </indexterm>
|
---|
| 334 | </listitem>
|
---|
| 335 | </varlistentry>
|
---|
| 336 |
|
---|
| 337 | <varlistentry id="libunbound">
|
---|
| 338 | <term><filename class="libraryfile">libunbound.so</filename></term>
|
---|
| 339 | <listitem>
|
---|
| 340 | <para>
|
---|
| 341 | provides the <application>Unbound</application> API functions to
|
---|
| 342 | programs.
|
---|
| 343 | </para>
|
---|
| 344 | <indexterm zone="unbound libunbound">
|
---|
| 345 | <primary sortas="c-libunbound">libunbound.so</primary>
|
---|
| 346 | </indexterm>
|
---|
| 347 | </listitem>
|
---|
| 348 | </varlistentry>
|
---|
| 349 |
|
---|
| 350 | </variablelist>
|
---|
| 351 |
|
---|
| 352 | </sect2>
|
---|
| 353 |
|
---|
| 354 | </sect1>
|
---|