source: server/other/unbound.xml@ d224244f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d224244f was d224244f, checked in by Igor Živković <igor@…>, 11 years ago

Added Unbound-1.4.20

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11462 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.8 KB
Line 
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 " ">
9 <!ENTITY unbound-md5sum "1f2d0b490fd7928a708a326beda21948">
10 <!ENTITY unbound-size "3.5 MB">
11 <!ENTITY unbound-buildsize "41 MB">
12 <!ENTITY unbound-time "0.6 SBU">
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
40 &lfs73_checked;
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">
80 <xref linkend="expat"/>,
81 <xref linkend="ldns"/> and
82 <xref linkend="openssl"/>
83 </para>
84
85 <bridgehead renderas="sect4">Optional</bridgehead>
86 <para role="optional">
87 <xref linkend="libevent"/>,
88 <xref linkend="python2"/> and
89 <ulink url="http://www.swig.org/">SWIG</ulink> (for Python bindings), and
90 <xref linkend="doxygen"/> (for html documentation)
91 </para>
92
93 <para condition="html" role="usernotes">User Notes:
94 <ulink url="&blfs-wiki;/unbound"/>
95 </para>
96 </sect2>
97
98 <sect2 role="installation">
99 <title>Installation of Unbound</title>
100
101 <para>
102 There should be a dedicated user and group to take control of the
103 <command>unbound</command> daemon after it is started. Issue the following
104 commands as the <systemitem class="username">root</systemitem> user:
105 </para>
106
107<screen role="root"><userinput>groupadd -g 88 unbound &amp;&amp;
108useradd -c "Unbound DNS resolver" -d /var/lib/unbound -u 88 \
109 -g unbound -s /bin/false unbound</userinput></screen>
110
111 <para>
112 Install <application>Unbound</application> by running the following
113 commands:
114 </para>
115
116<screen><userinput>./configure --prefix=/usr \
117 --sysconfdir=/etc \
118 --with-pidfile=/run/unbound.pid \
119 --disable-static &amp;&amp;
120make</userinput></screen>
121
122 <para>
123 If you have <xref linkend="doxygen"/> package installed and want to build
124 html documentation, run the following command:
125 </para>
126
127<screen><userinput>make doc</userinput></screen>
128
129 <para>To test the results, issue <command>make check</command>.</para>
130
131 <para>
132 Now, as the <systemitem class="username">root</systemitem> user:
133 </para>
134
135<screen role="root"><userinput>make install &amp;&amp;
136mv -v /usr/sbin/unbound-host /usr/bin</userinput></screen>
137
138 <para>
139 If you built html documentation, install it by running the following
140 commands as the <systemitem class="username">root</systemitem> user:
141 </para>
142
143<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/unbound-&unbound-version; &amp;&amp;
144install -v -m644 doc/html/* /usr/share/doc/unbound-&unbound-version;</userinput></screen>
145
146 </sect2>
147
148 <sect2 role="commands">
149 <title>Command Explanations</title>
150
151 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
152 href="../../xincludes/static-libraries.xml"/>
153
154 <para>
155 <option>--with-libevent</option>: This option enables libevent support
156 allowing use of large outgoing port ranges.
157 </para>
158
159 <para>
160 <option>--with-pyunbound</option>: This option enables building of the Python
161 bindings.
162 </para>
163
164 </sect2>
165
166 <sect2 role="configuration">
167 <title>Configuring Unbound</title>
168
169 <sect3 id="unbound-config">
170 <title>Config Files</title>
171
172 <para><filename>/etc/unbound/unbound.conf</filename></para>
173
174 <indexterm zone="unbound unbound-config">
175 <primary sortas="e-etc-unbound-unbound.conf">/etc/unbound/unbound.conf</primary>
176 </indexterm>
177
178 </sect3>
179
180 <sect3>
181 <title>Configuration Information</title>
182
183 <para>
184 In the default configuration, <command>unbound</command> will bind to
185 localhost (127.0.0.1 IP address) and allow recursive queries only from
186 localhost clients. If you want to use <command>unbound</command> for
187 local DNS resolution, run the following command as the
188 <systemitem class="username">root</systemitem> user:
189 </para>
190
191<screen role="root"><userinput>echo "nameserver 127.0.0.1" > /etc/resolv.conf</userinput></screen>
192
193 <para>
194 If you are using a DHCP client for connecting to a network,
195 <filename>/etc/resolv.conf</filename> gets overwritten with values
196 provided by DHCP server. You can override this, for example in
197 <xref linkend="dhcp"/>, by running the following command:
198 </para>
199
200<screen role="root"><userinput>sed -i '/request /i\supersede domain-name-servers 127.0.0.1;' \
201 /etc/dhcp/dhclient.conf</userinput></screen>
202
203 <para>
204 For advanced configuration see <filename>/etc/unbound/unbound.conf</filename>
205 file and the documentation.
206 </para>
207
208 </sect3>
209
210 <sect3 id="unbound-init">
211 <title>Boot Script</title>
212
213 <para>If you want the <application>Unbound</application> server to
214 start automatically when the system is booted, install the
215 <filename>/etc/rc.d/init.d/unbound</filename> init script included
216 in the <xref linkend="bootscripts"/> package.</para>
217
218 <indexterm zone="unbound unbound-init">
219 <primary sortas="f-unbound">unbound</primary>
220 </indexterm>
221
222<screen role="root"><userinput>make install-unbound</userinput></screen>
223
224 </sect3>
225
226 </sect2>
227
228 <sect2 role="content">
229 <title>Contents</title>
230
231 <segmentedlist>
232 <segtitle>Installed Programs</segtitle>
233 <segtitle>Installed Library</segtitle>
234 <segtitle>Installed Directories</segtitle>
235
236 <seglistitem>
237 <seg>
238 unbound, unbound-anchor, unbound-checkconf, unbound-control,
239 unbound-control-setup and unbound-host
240 </seg>
241 <seg>
242 libunbound.so
243 </seg>
244 <seg>
245 /etc/unbound and /usr/share/doc/unbound-&unbound-version;
246 </seg>
247 </seglistitem>
248 </segmentedlist>
249
250 <variablelist>
251 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
252 <?dbfo list-presentation="list"?>
253 <?dbhtml list-presentation="table"?>
254
255 <varlistentry id="unbound-prog">
256 <term><command>unbound</command></term>
257 <listitem>
258 <para>
259 is a DNS resolver daemon.
260 </para>
261 <indexterm zone="unbound unbound-prog">
262 <primary sortas="b-unbound">unbound</primary>
263 </indexterm>
264 </listitem>
265 </varlistentry>
266
267 <varlistentry id="unbound-anchor">
268 <term><command>unbound-anchor</command></term>
269 <listitem>
270 <para>
271 performs setup or update of the root trust anchor for DNSSEC
272 validation.
273 </para>
274 <indexterm zone="unbound unbound-anchor">
275 <primary sortas="b-unbound-anchor">unbound-anchor</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="unbound-checkconf">
281 <term><command>unbound-checkconf</command></term>
282 <listitem>
283 <para>
284 checks <command>unbound</command> configuration file for syntax
285 and other errors.
286 </para>
287 <indexterm zone="unbound unbound-checkconf">
288 <primary sortas="b-unbound-checkconf">unbound-checkconf</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 <varlistentry id="unbound-control">
294 <term><command>unbound-control</command></term>
295 <listitem>
296 <para>
297 performs remote administration on the <command>unbound</command> DNS
298 resolver.
299 </para>
300 <indexterm zone="unbound unbound-control">
301 <primary sortas="b-unbound-control">unbound-control</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="unbound-control-setup">
307 <term><command>unbound-control-setup</command></term>
308 <listitem>
309 <para>
310 generates self-signed certificate and private keys for the server
311 and client.
312 </para>
313 <indexterm zone="unbound unbound-control-setup">
314 <primary sortas="b-unbound-control-setup">unbound-control-setup</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 <varlistentry id="unbound-host">
320 <term><command>unbound-host</command></term>
321 <listitem>
322 <para>
323 is a DNS lookup utility similar to <command>host</command> from
324 <xref linkend="bind-utils"/>.
325 </para>
326 <indexterm zone="unbound unbound-host">
327 <primary sortas="b-unbound-host">unbound-host</primary>
328 </indexterm>
329 </listitem>
330 </varlistentry>
331
332 <varlistentry id="libunbound">
333 <term><filename class="libraryfile">libunbound.so</filename></term>
334 <listitem>
335 <para>
336 provides the <application>Unbound</application> API functions to
337 programs.
338 </para>
339 <indexterm zone="unbound libunbound">
340 <primary sortas="c-libunbound">libunbound.so</primary>
341 </indexterm>
342 </listitem>
343 </varlistentry>
344
345 </variablelist>
346
347 </sect2>
348
349</sect1>
Note: See TracBrowser for help on using the repository browser.