source: server/other/unbound.xml@ 25718e76

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 25718e76 was 25718e76, checked in by Bruce Dubbs <bdubbs@…>, 19 months ago

Update to unbound-1.16.3.

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