source: server/major/bind.xml@ bb93f8f1

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

Update to bind and bind utilities 9.16.15.

  • Property mode set to 100644
File size: 35.9 KB
RevLine 
[0931098]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[0931098]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[80c8e88]6
[cd9f166a]7 <!ENTITY bind-download-http "https://ftp.isc.org/isc/bind9/&bind-version;/bind-&bind-version;.tar.xz">
[f0d1db9]8 <!ENTITY bind-download-ftp "ftp://ftp.isc.org/isc/bind9/&bind-version;/bind-&bind-version;.tar.xz">
[60a2f00]9 <!ENTITY bind-md5sum "&bind-md5;">
[f40d447]10 <!ENTITY bind-size "5.2 MB">
[b6c8ea1]11 <!ENTITY bind-buildsize "144 MB (26 MB installed)">
[57b67574]12 <!ENTITY bind-time "0.4 SBU (with parallelism=4; about 40 minutes somewhat processor independent, to run the complete test suite)">
[0931098]13]>
14
[c951082]15<sect1 id="bind" xreflabel="BIND-&bind-version;">
[53217a6]16 <?dbhtml filename="bind.html"?>
17
18
[c951082]19 <title>BIND-&bind-version;</title>
[53217a6]20
21 <indexterm zone="bind">
22 <primary sortas="a-BIND">BIND</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to BIND</title>
27
[4472e923]28 <para>
29 The <application>BIND</application> package provides a DNS server
30 and client utilities. If you are only interested in the utilities, refer
31 to the <xref linkend="bind-utils"/>.
32 </para>
[53217a6]33
[9c85c9a]34 &lfs113_checked;
[40399b1]35
[53217a6]36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
[4472e923]39 <para>
40 Download (HTTP): <ulink url="&bind-download-http;"/>
41 </para>
[53217a6]42 </listitem>
43 <listitem>
[4472e923]44 <para>
45 Download (FTP): <ulink url="&bind-download-ftp;"/>
46 </para>
[53217a6]47 </listitem>
48 <listitem>
[4472e923]49 <para>
50 Download MD5 sum: &bind-md5sum;
51 </para>
[53217a6]52 </listitem>
53 <listitem>
[4472e923]54 <para>
55 Download size: &bind-size;
56 </para>
[53217a6]57 </listitem>
58 <listitem>
[4472e923]59 <para>
60 Estimated disk space required: &bind-buildsize;
61 </para>
[53217a6]62 </listitem>
63 <listitem>
[4472e923]64 <para>
65 Estimated build time: &bind-time;
66 </para>
[53217a6]67 </listitem>
68 </itemizedlist>
[94cbe4f]69<!--
[b62ff55c]70 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
71 <itemizedlist spacing="compact">
72 <listitem>
73 <para>
74 Required patch:
75 <ulink url="&patch-root;/bind-&bind-version;-upstream_fixes-1.patch"/>
76 </para>
77 </listitem>
78 </itemizedlist>
[94cbe4f]79-->
[53217a6]80 <bridgehead renderas="sect3">BIND Dependencies</bridgehead>
81
[af0874b]82 <bridgehead renderas="sect4">Required</bridgehead>
83 <para role="required">
84 <xref linkend="libuv"/>
85 </para>
86
[ec9db95]87 <bridgehead renderas="sect4">Recommended</bridgehead>
[24f32bb]88 <para role="recommended">
89 <xref linkend="json-c"/> and
[ec9db95]90 <xref linkend="libcap-pam"/>
91 </para>
92
[53217a6]93 <bridgehead renderas="sect4">Optional</bridgehead>
[a87a374]94 <para role="optional">
[cc64b232]95 <xref linkend="curl"/>,
[ec9db95]96 <xref linkend="libidn2"/>,
[7ba60b6e]97 <xref linkend="libxml2"/>,
[5d5c2107]98 <xref linkend="lmdb"/>,
[cdf0106]99 <xref linkend="mitkrb"/>,
[060dd59]100 <xref linkend="pytest"/>,
[402910e]101 <xref linkend="sphinx"/> (required to build documentation),
[cc64b232]102 <ulink url="https://cmocka.org/">cmocka</ulink>,
[5d5c2107]103 <ulink url="https://github.com/cjheath/geoip">geoip</ulink>,
[f8b4f14]104 <ulink url="https://github.com/jemalloc/jemalloc">jemalloc</ulink>,
[0aa72821]105 <ulink url="&w3m-url;">w3m</ulink>
[0f6476c]106 </para>
[160e58a4]107
108 <bridgehead renderas="sect4">Optional database backends</bridgehead>
109 <para role="optional">
110 <xref linkend="db"/>,
[90fb8f6]111 <xref linkend="mariadb"/> or <ulink url="https://www.mysql.com/">MySQL</ulink>,
[bf6aefc]112 <xref linkend="openldap"/>,
113 <xref linkend="postgresql"/>, and
[160e58a4]114 <xref linkend="unixodbc"/>
[a87a374]115 </para>
[53217a6]116
[9288855]117 <bridgehead renderas="sect4">Optional (to run the test suite)</bridgehead>
[a87a374]118 <para role="optional">
[4392a40]119 <xref linkend="perl-net-dns"/>
[a87a374]120 </para>
121
[002d2dc]122<!-- docs are now all sphinx based
[a87a374]123 <bridgehead renderas="sect4">Optional (to rebuild the documentation)</bridgehead>
124 <para role="optional">
125 <xref linkend="doxygen"/>,
[bf6aefc]126 <xref linkend="libxslt"/>, and
127 <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
[a87a374]128 </para>
[002d2dc]129-->
[53217a6]130
[3cb0c57]131 <para condition="html" role="usernotes">User Notes:
132 <ulink url="&blfs-wiki;/bind"/></para>
133
[53217a6]134 </sect2>
135
136 <sect2 role="installation">
137 <title>Installation of BIND</title>
[5cd7055]138
[c0cf007f]139<!--
[4472e923]140 <para>
141 To ensure <application>BIND</application> will build dnssec-keymgr,
142 install a python module as the <systemitem
143 class="username">root</systemitem> user:
144 </para>
[5cd7055]145
[1bc043ab]146<screen role="root"><userinput>pip3 install ply</userinput></screen>
[c0cf007f]147-->
[9a591635]148
[4472e923]149 <para>
150 Install <application>BIND</application> by running the
151 following commands:
152 </para>
[a3e2a06d]153
[15e49d1]154<screen><userinput>./configure --prefix=/usr \
[a87a374]155 --sysconfdir=/etc \
156 --localstatedir=/var \
[d4a47c5a]157 --mandir=/usr/share/man \
[ec9db95]158 --disable-static &amp;&amp;
[53217a6]159make</userinput></screen>
[a2fe8d47]160
[4472e923]161 <para>
162 Issue the following commands to run the complete suite of tests.
163 First, as the <systemitem class="username">root</systemitem> user, set up
164 some test interfaces:
165 </para>
[ade9c75]166
[4472e923]167 <note>
168 <para>
169 If IPv6 is not enabled in the kernel, there will be several
170 error messages: "RTNETLINK answers: Operation not permitted". These
171 messages do not affect the tests.
172 </para>
173 </note>
[bf6aefc]174
[06908bf6]175<screen role="root"
176 remap="test"><userinput>bin/tests/system/ifconfig.sh up</userinput></screen>
[ade9c75]177
[4472e923]178 <para>
179 The test suite may indicate some skipped tests depending on
180 what configuration options are used. Some tests are marked
[08235aa8]181 <quote>UNTESTED</quote> or do even fail if <xref linkend="perl-net-dns"/>
[002d2dc]182 is not installed. <!--One test, <quote>CPU</quote>, is known to fail.-->
[73fb07ad]183 To run the tests, as an unprivileged user, execute:
[4472e923]184 </para>
[4c288b0]185
[2f3e3de9]186<screen remap="test"><userinput>make -k check</userinput></screen>
[ade9c75]187
[4472e923]188 <para>
189 Again as <systemitem class="username">root</systemitem>, clean up the
190 test interfaces:
191 </para>
[ade9c75]192
[06908bf6]193<screen role="root"
194 remap="test"><userinput>bin/tests/system/ifconfig.sh down</userinput></screen>
[ade9c75]195
[4472e923]196 <para>
197 Finally, install the package as the <systemitem
198 class="username">root</systemitem> user:
199 </para>
[a2fe8d47]200
[98a83b1]201<!-- Documentation is an issue - The docs are now all in .rst format and appear
[8753635b]202to be sphinx based. install source .rst files for now...
[002d2dc]203
204leave docs untouched as they does only use disk space when not
205used to recreate the docs via Sphinx. I've added a note regarding
206the documentation. (thomas)
[53217a6]207
[8753635b]208<screen role="root"><userinput>make install &amp;&amp;
209
[002d2dc]210install -vdm 755 /usr/share/doc/bind-&bind-version;/{arm,dnssec-guide} &amp;&amp;
[8753635b]211install doc/arm/* /usr/share/doc/bind-&bind-version;/arm &amp;&amp;
212install doc/dnssec-guide/* /usr/share/doc/bind-&bind-version;/dnssec-guide</userinput></screen>
[002d2dc]213-->
214<screen role="root"><userinput>make install</userinput></screen>
215
[8753635b]216 </sect2>
217
[53217a6]218 <sect2 role="commands">
219 <title>Command Explanations</title>
[efe9371]220
[4472e923]221 <para>
222 <parameter>--sysconfdir=/etc</parameter>: This parameter forces
223 <application>BIND</application> to look for configuration
224 files in <filename class='directory'>/etc</filename> instead of
225 <filename class='directory'>/usr/etc</filename>.
226 </para>
[53217a6]227
[c0cf007f]228 <!-- Seems to be removed in 9.18.0
[4472e923]229 <para>
[c0cf007f]230 <parameter>- -with-libtool</parameter>: This parameter forces the
[4472e923]231 building of dynamic libraries and links the installed binaries to these
232 libraries.
233 </para>
[c0cf007f]234 -->
[8558044]235
[4472e923]236 <para>
237 <option>--with-libidn2</option>: This parameter enables
238 the IDNA2008 (Internationalized Domain Names in Applications)
239 support.
240 </para>
[fd7e0ed6]241
[4472e923]242 <para>
243 <option>--enable-fetchlimit</option>: Use this option if you want
244 to be able to limit the rate of recursive client queries. This may be
245 useful on servers which receive a large number of queries.
246 </para>
247
248 <para>
249 <option>--disable-linux-caps</option>: BIND can also be built without
250 capability support by using this option, at the cost of some loss of
251 security.
252 </para>
253
254 <para>
255 <option>--with-dlz-{mysql,bdb,filesystem,ldap,odbc,stub}</option>: Use
256 one (or more) of those options to add Dynamically Loadable Zones support.
257 For more information refer to <ulink
[17aa21c]258 url="https://bind-dlz.sourceforge.net/">bind-dlz.sourceforge.net</ulink>.
[ec9db95]259 </para>
[8558044]260
[7ba60b6e]261 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
262 href="../../xincludes/static-libraries.xml"/>
263
[53217a6]264 </sect2>
265
266 <sect2 role="configuration">
267 <title>Configuring BIND</title>
268
269 <sect3 id="bind-config">
270 <title>Config files</title>
271
[4472e923]272 <para>
273 <filename>named.conf</filename>,
274 <filename>root.hints</filename>,
275 <filename>127.0.0</filename>,
276 <filename>rndc.conf</filename>, and
277 <filename>resolv.conf</filename>
278 </para>
[53217a6]279
280 <indexterm zone="bind bind-config">
281 <primary sortas="e-etc-named.conf">/etc/named.conf</primary>
282 </indexterm>
283
284 <indexterm zone="bind bind-config">
285 <primary sortas="e-etc-rndc.conf">/etc/rndc.conf</primary>
286 </indexterm>
287
288 <indexterm zone="bind bind-config">
289 <primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary>
290 </indexterm>
291
292 <indexterm zone="bind bind-config">
[634cf991]293 <primary
294 sortas="e-etc-namedb-root.hints">/etc/namedb/root.hints</primary>
[53217a6]295 </indexterm>
296
297 <indexterm zone="bind bind-config">
[634cf991]298 <primary
299 sortas="e-etc-namedb-pz-127.0.0.0">/etc/namedb/pz/127.0.0.0</primary>
[53217a6]300 </indexterm>
301 </sect3>
302
303 <sect3>
304 <title>Configuration Information</title>
305
[4472e923]306 <para>
307 <application>BIND</application> will be configured to run in a
308 <command>chroot</command> jail as an unprivileged user (<systemitem
309 class="username">named</systemitem>). This configuration is more secure
310 in that a DNS compromise can only affect a few files in the <systemitem
311 class="username">named</systemitem> user's <envar>HOME</envar>
312 directory.
313 </para>
[53217a6]314
[4472e923]315 <para>
316 Create the unprivileged user and group <systemitem
317 class="username">named</systemitem>:
318 </para>
[53217a6]319
[b785ab29]320<screen role="root"><userinput>groupadd -g 20 named &amp;&amp;
[9288855]321useradd -c "BIND Owner" -g named -s /bin/false -u 20 named &amp;&amp;
[068bb16]322install -d -m770 -o named -g named /srv/named</userinput></screen>
[53217a6]323
[4472e923]324 <para>
325 Set up some files, directories and devices needed by
326 <application>BIND</application>:
327 </para>
[53217a6]328
[443b085]329<screen role="root"><userinput>mkdir -p /srv/named &amp;&amp;
330cd /srv/named &amp;&amp;
[9a2b97b9]331mkdir -p dev etc/named/{slave,pz} usr/lib/engines var/run/named &amp;&amp;
[068bb16]332mknod /srv/named/dev/null c 1 3 &amp;&amp;
[e14ac42]333mknod /srv/named/dev/urandom c 1 9 &amp;&amp;
[d8805ba2]334chmod 666 /srv/named/dev/{null,urandom} &amp;&amp;
[9a2b97b9]335cp /etc/localtime etc</userinput></screen>
[0931098]336
[4472e923]337 <para>
338 The <filename>rndc.conf</filename> file contains information for
339 controlling <command>named</command> operations with the
340 <command>rndc</command> utility. Generate a key for use in the
[b62ff55c]341 <filename>named.conf</filename> and <filename>rndc.conf</filename>
[4472e923]342 with the <command>rndc-confgen</command> command:
343 </para>
[b8214dc6]344
[4472e923]345<screen role="root"><userinput>rndc-confgen -a -b 512 -t /srv/named</userinput></screen>
[b8214dc6]346
[4472e923]347 <para>
348 Complete the <filename>named.conf</filename> file from which
349 <command>named</command> will read the location of zone files, root
350 name servers and secure DNS keys:
351 </para>
[0931098]352
[634cf991]353<screen role="root"><?dbfo keep-together="auto"?><userinput>cat &gt;&gt; /srv/named/etc/named.conf &lt;&lt; "EOF"
354<literal>options {
[cdf0106]355 directory "/etc/named";
[0931098]356 pid-file "/var/run/named.pid";
357 statistics-file "/var/run/named.stats";
[53217a6]358
[634cf991]359};
360zone "." {
361 type hint;
362 file "root.hints";
363};
364zone "0.0.127.in-addr.arpa" {
365 type master;
366 file "pz/127.0.0";
367};
[1c2cfae1]368
369// Bind 9 now logs by default through syslog (except debug).
370// These are the default logging rules.
371
372logging {
[634cf991]373 category default { default_syslog; default_debug; };
374 category unmatched { null; };
[1c2cfae1]375
376 channel default_syslog {
377 syslog daemon; // send to syslog's daemon
378 // facility
379 severity info; // only send priority info
380 // and higher
381 };
382
383 channel default_debug {
384 file "named.run"; // write to named.run in
385 // the working directory
386 // Note: stderr is used instead
387 // of "named.run"
388 // if the server is started
389 // with the '-f' option.
390 severity dynamic; // log at the server's
391 // current debug level
392 };
393
394 channel default_stderr {
395 stderr; // writes to stderr
396 severity info; // only send priority info
397 // and higher
398 };
399
400 channel null {
[634cf991]401 null; // toss anything sent to
[1c2cfae1]402 // this channel
403 };
[53217a6]404};</literal>
405EOF</userinput></screen>
[16473a92]406
[4472e923]407 <para>
408 Create a zone file with the following contents:
409 </para>
[0931098]410
[cdf0106]411<screen role="root"><userinput>cat &gt; /srv/named/etc/named/pz/127.0.0 &lt;&lt; "EOF"
[53217a6]412<literal>$TTL 3D
[0931098]413@ IN SOA ns.local.domain. hostmaster.local.domain. (
414 1 ; Serial
415 8H ; Refresh
416 2H ; Retry
417 4W ; Expire
418 1D) ; Minimum TTL
419 NS ns.local.domain.
[53217a6]4201 PTR localhost.</literal>
421EOF</userinput></screen>
[0931098]422
[4472e923]423 <para>
424 Create the <filename>root.hints</filename> file with the following
425 commands:
426 </para>
[0931098]427
[53217a6]428 <note>
[4472e923]429 <para>
430 Caution must be used to ensure there are no leading spaces in
431 this file.
432 </para>
[53217a6]433 </note>
[0931098]434
[cdf0106]435<screen role="root"><userinput>cat &gt; /srv/named/etc/named/root.hints &lt;&lt; "EOF"
[53217a6]436<literal>. 6D IN NS A.ROOT-SERVERS.NET.
[0931098]437. 6D IN NS B.ROOT-SERVERS.NET.
438. 6D IN NS C.ROOT-SERVERS.NET.
439. 6D IN NS D.ROOT-SERVERS.NET.
440. 6D IN NS E.ROOT-SERVERS.NET.
441. 6D IN NS F.ROOT-SERVERS.NET.
442. 6D IN NS G.ROOT-SERVERS.NET.
443. 6D IN NS H.ROOT-SERVERS.NET.
444. 6D IN NS I.ROOT-SERVERS.NET.
445. 6D IN NS J.ROOT-SERVERS.NET.
446. 6D IN NS K.ROOT-SERVERS.NET.
447. 6D IN NS L.ROOT-SERVERS.NET.
448. 6D IN NS M.ROOT-SERVERS.NET.
449A.ROOT-SERVERS.NET. 6D IN A 198.41.0.4
[da3e8de]450A.ROOT-SERVERS.NET. 6D IN AAAA 2001:503:ba3e::2:30
[8414284]451B.ROOT-SERVERS.NET. 6D IN A 199.9.14.201
[9c829d1]452B.ROOT-SERVERS.NET. 6D IN AAAA 2001:500:200::b
[0931098]453C.ROOT-SERVERS.NET. 6D IN A 192.33.4.12
[da3e8de]454C.ROOT-SERVERS.NET. 6D IN AAAA 2001:500:2::c
[7ba60b6e]455D.ROOT-SERVERS.NET. 6D IN A 199.7.91.13
[da3e8de]456D.ROOT-SERVERS.NET. 6D IN AAAA 2001:500:2d::d
[0931098]457E.ROOT-SERVERS.NET. 6D IN A 192.203.230.10
[da3e8de]458E.ROOT-SERVERS.NET. 6D IN AAAA 2001:500:a8::e
[0931098]459F.ROOT-SERVERS.NET. 6D IN A 192.5.5.241
[da3e8de]460F.ROOT-SERVERS.NET. 6D IN AAAA 2001:500:2f::f
[0931098]461G.ROOT-SERVERS.NET. 6D IN A 192.112.36.4
[9c829d1]462G.ROOT-SERVERS.NET. 6D IN AAAA 2001:500:12::d0d
[da3e8de]463H.ROOT-SERVERS.NET. 6D IN A 198.97.190.53
464H.ROOT-SERVERS.NET. 6D IN AAAA 2001:500:1::53
[0931098]465I.ROOT-SERVERS.NET. 6D IN A 192.36.148.17
[da3e8de]466I.ROOT-SERVERS.NET. 6D IN AAAA 2001:7fe::53
[0931098]467J.ROOT-SERVERS.NET. 6D IN A 192.58.128.30
[da3e8de]468J.ROOT-SERVERS.NET. 6D IN AAAA 2001:503:c27::2:30
[0931098]469K.ROOT-SERVERS.NET. 6D IN A 193.0.14.129
[da3e8de]470K.ROOT-SERVERS.NET. 6D IN AAAA 2001:7fd::1
[9288855]471L.ROOT-SERVERS.NET. 6D IN A 199.7.83.42
[da3e8de]472L.ROOT-SERVERS.NET. 6D IN AAAA 2001:500:9f::42
473M.ROOT-SERVERS.NET. 6D IN A 202.12.27.33
474M.ROOT-SERVERS.NET. 6D IN AAAA 2001:dc3::35</literal>
[53217a6]475EOF</userinput></screen>
[f45b1953]476
[4472e923]477 <para>
478 The <filename>root.hints</filename> file is a list of root name
479 servers. This file must be updated periodically with the
480 <command>dig</command> utility. A current copy of root.hints can be
[2dcc16cf]481 obtained from <ulink url="https://www.internic.net/domain/named.root"/>.
[002d2dc]482 For details, consult the "BIND 9 Administrator Reference Manual".
[4472e923]483 </para>
484
485 <para>
486 Create or modify <filename>resolv.conf</filename> to use the new
487 name server with the following commands:
488 </para>
[f45b1953]489
[53217a6]490 <note>
[4472e923]491 <para>
492 Replace <replaceable>&lt;yourdomain.com&gt;</replaceable> with
493 your own valid domain name.
494 </para>
[53217a6]495 </note>
496
497<screen role="root"><userinput>cp /etc/resolv.conf /etc/resolv.conf.bak &amp;&amp;
498cat &gt; /etc/resolv.conf &lt;&lt; "EOF"
[3cb0c57]499<literal>search <replaceable>&lt;yourdomain.com&gt;</replaceable>
[53217a6]500nameserver 127.0.0.1</literal>
501EOF</userinput></screen>
502
[4472e923]503 <para>
504 Set permissions on the <command>chroot</command> jail with the
505 following command:
506 </para>
[53217a6]507
[634cf991]508<screen role="root"><userinput>chown -R named:named /srv/named</userinput></screen>
[53217a6]509
510 </sect3>
511
512 <sect3 id="bind-init">
[1258125]513 <title><phrase revision="sysv">Boot Script</phrase>
514 <phrase revision="systemd">Systemd Unit</phrase></title>
[53217a6]515
[4472e923]516 <para>
517 To start the DNS server at boot, install the
518 <phrase revision="sysv"><filename>/etc/rc.d/init.d/bind</filename> init
519 script</phrase>
520 <phrase revision="systemd"><filename>named.service</filename>
521 unit</phrase> included in the
522 <xref linkend="bootscripts" revision="sysv"/>
523 <xref linkend="systemd-units" revision="systemd"/> package:
524 </para>
[53217a6]525
526 <indexterm zone="bind bind-init">
527 <primary sortas="f-bind">bind</primary>
528 </indexterm>
529
[6111a63]530<screen role="root" revision="sysv"><userinput>make install-bind</userinput></screen>
531<screen role="root" revision="systemd"><userinput>make install-named</userinput></screen>
[53217a6]532
[4472e923]533 <para>
534 Now start <application>BIND</application> with the following command:
535 </para>
[53217a6]536
[1258125]537<screen role="root" revision="sysv"><userinput>/etc/rc.d/init.d/bind start</userinput></screen>
538<screen role="root" revision="systemd"><userinput>systemctl start named</userinput></screen>
[53217a6]539
540 </sect3>
541
542 <sect3>
543 <title>Testing BIND</title>
544
[4472e923]545 <para>
546 Test out the new <application>BIND</application> 9 installation.
547 First query the local host address with <command>dig</command>:
548 </para>
[53217a6]549
550<screen><userinput>dig -x 127.0.0.1</userinput></screen>
551
[4472e923]552 <para>
553 Now try an external name lookup, taking note of the speed
554 difference in repeated lookups due to the caching. Run the
555 <command>dig</command> command twice on the same address:
556 </para>
[53217a6]557
[4e88613]558<screen><userinput>dig www.&lfs-domainname; &amp;&amp;
559dig www.&lfs-domainname;</userinput></screen>
[53217a6]560
[4472e923]561 <para>
562 You can see almost instantaneous results with the named caching
563 lookups. Consult the <application>BIND</application> Administrator
[002d2dc]564 Reference Manual (see below) for further configuration options.
[4472e923]565 </para>
[53217a6]566
567 </sect3>
568
569 </sect2>
570
[002d2dc]571 <sect2>
572 <title>Administrator Reference Manual (ARM)</title>
[1fe05eb]573
[002d2dc]574 <para>
575 The ARM documentation (do not confuse with the processor architecture)
576 is included in the source package. The documentation is in .rst
577 format which means, it can be converted in human readable formats
[402910e]578 if <xref linkend="sphinx"/> is installed.
[002d2dc]579 </para>
[1fe05eb]580
[002d2dc]581 <para>
582 When <application>BIND</application> is set up, especially when
583 to operate in a real live scenario, it is <emphasis>highly</emphasis>
584 recommended to consult the ARM documentation. ISC provides an
585 updated set of excellent documentation along with every release
[402910e]586 so it can be easily viewed and/or downloaded &ndash; so there is
[002d2dc]587 no excuse to not read the docs. The formats ISC provides are PDF,
588 epub and html at <ulink url="https://downloads.isc.org/isc/bind9/&bind-version;/doc/arm/"/>.
589 </para>
590 </sect2>
[1fe05eb]591
[53217a6]592 <sect2 role="content">
593 <title>Contents</title>
594
595 <segmentedlist>
596 <segtitle>Installed Programs</segtitle>
597 <segtitle>Installed Libraries</segtitle>
598 <segtitle>Installed Directories</segtitle>
599
600 <seglistitem>
[efe9371]601
[8558044]602 <seg>arpaname, <!--bind9-config hardlinked to isc-config.sh,-->
603 ddns-confgen, delv, dig, dnssec-cds, dnssec-checkds, dnssec-coverage,
604 dnssec-dsfromkey, dnssec-importkey, dnssec-keyfromlabel, dnssec-keygen,
605 dnssec-keymgr, dnssec-revoke, dnssec-settime, dnssec-signzone,
[5d5c2107]606 dnssec-verify, host, mdig, named, named-checkconf,
[8558044]607 named-checkzone, named-compilezone (symlink), named-journalprint,
608 named-nzd2nzf, named-rrchecker, nsec3hash, nslookup, nsupdate, rndc,
[cc64b232]609 rndc-confgen, and tsig-keygen (symlink)</seg>
[74fe55c]610
[5d5c2107]611 <seg>libbind9.so, libdns.so, libirs.so, libisc.so, libisccc.so,
612 libisccfg.so, and libns.so</seg>
[efe9371]613
[5d5c2107]614 <seg>/usr/include/{bind9,dns,dst,irs,isc,isccc,isccfg,ns,pk11,pkcs11},
[0aa72821]615 /usr/lib/named, /usr/lib/python&python3-majorver;/site-packages/isc,
616 and /srv/named</seg>
[53217a6]617 </seglistitem>
618 </segmentedlist>
619
620 <variablelist>
621 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
622 <?dbfo list-presentation="list"?>
623 <?dbhtml list-presentation="table"?>
624
[298fee30]625 <varlistentry id="arpaname">
626 <term><command>arpaname</command></term>
627 <listitem>
628 <para>
[4c24eb0a]629 translates IP addresses to the corresponding ARPA names
[298fee30]630 </para>
631 <indexterm zone="bind arpaname">
632 <primary sortas="b-arpaname">arpaname</primary>
633 </indexterm>
634 </listitem>
635 </varlistentry>
636
[cc64b232]637<!-- Not present as of 9.16.5
[298fee30]638 <varlistentry id="bind9-config">
639 <term><command>bind9-config</command></term>
640 <listitem>
641 <para>
[bf32a132]642 is hardlinked to <command>isc-config.sh</command>.
[298fee30]643 </para>
644 <indexterm zone="bind bind9-config">
645 <primary sortas="b-bind9-config">bind9-config</primary>
646 </indexterm>
647 </listitem>
648 </varlistentry>
[cc64b232]649-->
[298fee30]650
651 <varlistentry id="ddns-confgen">
652 <term><command>ddns-confgen</command></term>
653 <listitem>
654 <para>
[4c24eb0a]655 generates a key for use by nsupdate and named
[298fee30]656 </para>
657 <indexterm zone="bind ddns-confgen">
658 <primary sortas="b-ddns-confgen">ddns-confgen</primary>
659 </indexterm>
660 </listitem>
661 </varlistentry>
662
663 <varlistentry id="delv">
664 <term><command>delv</command></term>
665 <listitem>
666 <para>
[c18b8f23]667 is a new debugging tool that is a successor to
[4c24eb0a]668 <command>dig</command>
[298fee30]669 </para>
670 <indexterm zone="bind delv">
671 <primary sortas="b-delv">delv</primary>
672 </indexterm>
673 </listitem>
674 </varlistentry>
675
[53217a6]676 <varlistentry id="dig">
677 <term><command>dig</command></term>
678 <listitem>
[4472e923]679 <para>
[4c24eb0a]680 interrogates DNS servers
[4472e923]681 </para>
[53217a6]682 <indexterm zone="bind dig">
683 <primary sortas="b-dig">dig</primary>
684 </indexterm>
685 </listitem>
686 </varlistentry>
[cc64b232]687
688 <varlistentry id="dnssec-cds">
689 <term><command>dnssec-cds</command></term>
690 <listitem>
691 <para>
692 changes DS records for a child zone based on
[4c24eb0a]693 CDS/CDNSKEY
[cc64b232]694 </para>
695 <indexterm zone="bind dnssec-cds">
696 <primary sortas="b-dnssec-cds">dnssec-cds</primary>
697 </indexterm>
698 </listitem>
699 </varlistentry>
700
[298fee30]701 <varlistentry id="dnssec-checkds">
702 <term><command>dnssec-checkds</command></term>
703 <listitem>
704 <para>
[4c24eb0a]705 is a DNSSEC delegation consistency checking tool
[298fee30]706 </para>
707 <indexterm zone="bind dnssec-checkds">
708 <primary sortas="b-dnssec-checkds">dnssec-checkds</primary>
709 </indexterm>
710 </listitem>
711 </varlistentry>
712
713 <varlistentry id="dnssec-coverage">
714 <term><command>dnssec-coverage</command></term>
715 <listitem>
716 <para>
[c18b8f23]717 verifies that the DNSSEC keys for a given zone or a set of zones
[298fee30]718 have timing metadata set properly to ensure no future lapses
[4c24eb0a]719 in DNSSEC coverage
[298fee30]720 </para>
721 <indexterm zone="bind dnssec-coverage">
722 <primary sortas="b-dnssec-coverage">dnssec-coverage</primary>
723 </indexterm>
724 </listitem>
[cc64b232]725 </varlistentry>
[c18b8f23]726
[298fee30]727 <varlistentry id="dnssec-dsfromkey">
728 <term><command>dnssec-dsfromkey</command></term>
729 <listitem>
730 <para>
[4c24eb0a]731 outputs the Delegation Signer (DS) resource record (RR)
[298fee30]732 </para>
733 <indexterm zone="bind dnssec-dsfromkey">
734 <primary sortas="b-dnssec-dsfromkey">dnssec-dsfromkey</primary>
735 </indexterm>
736 </listitem>
737 </varlistentry>
738
739 <varlistentry id="dnssec-importkey">
740 <term><command>dnssec-importkey</command></term>
741 <listitem>
742 <para>
[c18b8f23]743 reads a public DNSKEY record and generates a pair of
[4c24eb0a]744 .key/.private files
[298fee30]745 </para>
746 <indexterm zone="bind dnssec-importkey">
747 <primary sortas="b-dnssec-importkey">dnssec-importkey</primary>
748 </indexterm>
749 </listitem>
750 </varlistentry>
751
752 <varlistentry id="dnssec-keyfromlabel">
753 <term><command>dnssec-keyfromlabel</command></term>
754 <listitem>
755 <para>
[0aa72821]756 gets keys with the given label from a cryptography hardware device
[4c24eb0a]757 and builds key files for DNSSEC
[298fee30]758 </para>
759 <indexterm zone="bind dnssec-keyfromlabel">
760 <primary sortas="b-dnssec-keyfromlabel">dnssec-keyfromlabel</primary>
761 </indexterm>
762 </listitem>
763 </varlistentry>
764
[53217a6]765 <varlistentry id="dnssec-keygen">
766 <term><command>dnssec-keygen</command></term>
767 <listitem>
[4472e923]768 <para>
[4c24eb0a]769 is a key generator for secure DNS
[4472e923]770 </para>
[53217a6]771 <indexterm zone="bind dnssec-keygen">
772 <primary sortas="b-dnssec-keygen">dnssec-keygen</primary>
773 </indexterm>
774 </listitem>
775 </varlistentry>
776
[cc64b232]777 <varlistentry id="dnssec-keymgr">
778 <term><command>dnssec-keymgr</command></term>
779 <listitem>
780 <para>
[4c24eb0a]781 ensures correct DNSKEY coverage based on a defined policy
[cc64b232]782 </para>
783 <indexterm zone="bind dnssec-keymgr">
784 <primary sortas="b-dnssec-keymgr">dnssec-keymgr</primary>
785 </indexterm>
786 </listitem>
787 </varlistentry>
788
[298fee30]789 <varlistentry id="dnssec-revoke">
790 <term><command>dnssec-revoke</command></term>
791 <listitem>
792 <para>
[4c24eb0a]793 sets the REVOKED bit on a DNSSEC key
[298fee30]794 </para>
795 <indexterm zone="bind dnssec-revoke">
796 <primary sortas="b-dnssec-revoke">dnssec-revoke</primary>
797 </indexterm>
798 </listitem>
799 </varlistentry>
800
801 <varlistentry id="dnssec-settime">
802 <term><command>dnssec-settime</command></term>
803 <listitem>
804 <para>
[4c24eb0a]805 sets the key timing metadata for a DNSSEC key
[298fee30]806 </para>
807 <indexterm zone="bind dnssec-settime">
808 <primary sortas="b-dnssec-settime">dnssec-settime</primary>
809 </indexterm>
810 </listitem>
811 </varlistentry>
812
[53217a6]813 <varlistentry id="dnssec-signzone">
814 <term><command>dnssec-signzone</command></term>
815 <listitem>
[4472e923]816 <para>
[4c24eb0a]817 generates signed versions of zone files
[4472e923]818 </para>
[53217a6]819 <indexterm zone="bind dnssec-signzone">
820 <primary sortas="b-dnssec-signzone">dnssec-signzone</primary>
821 </indexterm>
822 </listitem>
823 </varlistentry>
824
[298fee30]825 <varlistentry id="dnssec-verify">
826 <term><command>dnssec-verify</command></term>
827 <listitem>
828 <para>
[c18b8f23]829 verifies that a zone is fully signed for each algorithm found
830 in the DNSKEY RRset for the zone, and that the NSEC / NSEC3
[4c24eb0a]831 chains are complete
[298fee30]832 </para>
833 <indexterm zone="bind dnssec-verify">
834 <primary sortas="b-dnssec-verify">dnssec-verify</primary>
835 </indexterm>
836 </listitem>
837 </varlistentry>
838
[cc64b232]839<!-- No longer present with 9.16.5
[298fee30]840 <varlistentry id="genrandom">
841 <term><command>genrandom</command></term>
842 <listitem>
843 <para>
[bf32a132]844 generates a file containing random data.
[298fee30]845 </para>
846 <indexterm zone="bind genrandom">
847 <primary sortas="b-genrandom">genrandom</primary>
848 </indexterm>
849 </listitem>
850 </varlistentry>
[cc64b232]851-->
[298fee30]852
[53217a6]853 <varlistentry id="host">
854 <term><command>host</command></term>
855 <listitem>
[4472e923]856 <para>
[4c24eb0a]857 is a utility for DNS lookups
[4472e923]858 </para>
[53217a6]859 <indexterm zone="bind host">
860 <primary sortas="b-host">host</primary>
861 </indexterm>
862 </listitem>
863 </varlistentry>
864
[cc64b232]865 <!-- No longer present with 9.16.5
[298fee30]866 <varlistentry id="isc-config.sh">
867 <term><command>isc-config.sh</command></term>
868 <listitem>
869 <para>
870 prints information related to the installed version of ISC BIND.
871 </para>
872 <indexterm zone="bind isc-config.sh">
873 <primary sortas="b-isc-config.sh">isc-config.sh</primary>
874 </indexterm>
875 </listitem>
876 </varlistentry>
877
878 <varlistentry id="isc-hmac-fixup">
879 <term><command>isc-hmac-fixup</command></term>
880 <listitem>
881 <para>
882 fixes HMAC keys generated by older versions of BIND.
883 </para>
884 <indexterm zone="bind isc-hmac-fixup">
885 <primary sortas="b-isc-hmac-fixup">isc-hmac-fixup</primary>
886 </indexterm>
887 </listitem>
888 </varlistentry>
889
[53217a6]890 <varlistentry id="lwresd">
891 <term><command>lwresd</command></term>
892 <listitem>
[4472e923]893 <para>
894 is a caching-only name server for local process use.
895 </para>
[53217a6]896 <indexterm zone="bind lwresd">
897 <primary sortas="b-lwresd">lwresd</primary>
898 </indexterm>
899 </listitem>
900 </varlistentry>
[cc64b232]901-->
902
903 <varlistentry id="mdig">
904 <term><command>mdig</command></term>
905 <listitem>
906 <para>
[4c24eb0a]907 is a version of dig that allows multiple queries at once
[cc64b232]908 </para>
909 <indexterm zone="bind mdig">
910 <primary sortas="b-mdig">mdig</primary>
911 </indexterm>
912 </listitem>
913 </varlistentry>
[53217a6]914
915 <varlistentry id="named">
916 <term><command>named</command></term>
917 <listitem>
[4472e923]918 <para>
[4c24eb0a]919 is the name server daemon
[4472e923]920 </para>
[53217a6]921 <indexterm zone="bind named">
922 <primary sortas="b-named">named</primary>
923 </indexterm>
924 </listitem>
925 </varlistentry>
926
927 <varlistentry id="named-checkconf">
928 <term><command>named-checkconf</command></term>
929 <listitem>
[4472e923]930 <para>
931 checks the syntax of <filename>named.conf</filename>
[4c24eb0a]932 files
[4472e923]933 </para>
[53217a6]934 <indexterm zone="bind named-checkconf">
935 <primary sortas="b-named-checkconf">named-checkconf</primary>
936 </indexterm>
937 </listitem>
938 </varlistentry>
939
940 <varlistentry id="named-checkzone">
941 <term><command>named-checkzone</command></term>
942 <listitem>
[4472e923]943 <para>
[4c24eb0a]944 checks zone file validity
[4472e923]945 </para>
[53217a6]946 <indexterm zone="bind named-checkzone">
947 <primary sortas="b-named-checkzone">named-checkzone</primary>
948 </indexterm>
949 </listitem>
950 </varlistentry>
951
[298fee30]952 <varlistentry id="named-compilezone">
953 <term><command>named-compilezone</command></term>
954 <listitem>
955 <para>
[c18b8f23]956 is similar to <command>named-checkzone</command>, but it always
[4c24eb0a]957 dumps the zone contents to a specified file in a specified format
[298fee30]958 </para>
959 <indexterm zone="bind named-compilezone">
960 <primary sortas="b-named-compilezone">named-compilezone</primary>
961 </indexterm>
962 </listitem>
963 </varlistentry>
964
965 <varlistentry id="named-journalprint">
966 <term><command>named-journalprint</command></term>
967 <listitem>
968 <para>
[4c24eb0a]969 prints the zone journal in human-readable form
[298fee30]970 </para>
971 <indexterm zone="bind named-journalprint">
972 <primary sortas="b-named-journalprint">named-journalprint</primary>
973 </indexterm>
974 </listitem>
975 </varlistentry>
976
977 <varlistentry id="named-rrchecker">
978 <term><command>named-rrchecker</command></term>
979 <listitem>
980 <para>
[bf32a132]981 reads an individual DNS resource record from standard input and
[4c24eb0a]982 checks if it is syntactically correct
[298fee30]983 </para>
984 <indexterm zone="bind named-rrchecker">
985 <primary sortas="b-named-rrchecker">named-rrchecker</primary>
986 </indexterm>
987 </listitem>
988 </varlistentry>
989
[cc64b232]990 <varlistentry id="named-nzd2nzf">
991 <term><command>named-nzd2nzf</command></term>
992 <listitem>
993 <para>
[4c24eb0a]994 converts an NZD database to NZF text format
[cc64b232]995 </para>
996 <indexterm zone="bind named-nzd2nzf">
997 <primary sortas="b-named-nzd2nzf">named-nzd2nzf</primary>
998 </indexterm>
999 </listitem>
1000 </varlistentry>
1001
[298fee30]1002 <varlistentry id="nsec3hash">
1003 <term><command>nsec3hash</command></term>
1004 <listitem>
1005 <para>
[4c24eb0a]1006 generates an NSEC3 hash based on a set of NSEC3 parameters
[298fee30]1007 </para>
1008 <indexterm zone="bind nsec3hash">
1009 <primary sortas="b-nsec3hash">nsec3hash</primary>
1010 </indexterm>
1011 </listitem>
1012 </varlistentry>
1013
[53217a6]1014 <varlistentry id="nslookup">
1015 <term><command>nslookup</command></term>
1016 <listitem>
[4472e923]1017 <para>
[4c24eb0a]1018 is a program used to query Internet domain nameservers
[4472e923]1019 </para>
[53217a6]1020 <indexterm zone="bind nslookup">
1021 <primary sortas="b-nslookup">nslookup</primary>
1022 </indexterm>
1023 </listitem>
1024 </varlistentry>
1025
1026 <varlistentry id="nsupdate">
1027 <term><command>nsupdate</command></term>
1028 <listitem>
[4472e923]1029 <para>
[4c24eb0a]1030 is used to submit DNS update requests
[4472e923]1031 </para>
[53217a6]1032 <indexterm zone="bind nsupdate">
1033 <primary sortas="b-nsupdate">nsupdate</primary>
1034 </indexterm>
1035 </listitem>
1036 </varlistentry>
1037
1038 <varlistentry id="rndc">
1039 <term><command>rndc</command></term>
1040 <listitem>
[4472e923]1041 <para>
[4c24eb0a]1042 controls the operation of <application>BIND</application>
[4472e923]1043 </para>
[53217a6]1044 <indexterm zone="bind rndc">
1045 <primary sortas="b-rndc">rndc</primary>
1046 </indexterm>
1047 </listitem>
1048 </varlistentry>
1049
1050 <varlistentry id="rndc-confgen">
1051 <term><command>rndc-confgen</command></term>
1052 <listitem>
[4472e923]1053 <para>
[4c24eb0a]1054 generates <filename>rndc.conf</filename> files
[4472e923]1055 </para>
[53217a6]1056 <indexterm zone="bind rndc-confgen">
1057 <primary sortas="b-rndc-confgen">rndc-confgen</primary>
1058 </indexterm>
1059 </listitem>
1060 </varlistentry>
1061
[298fee30]1062 <varlistentry id="tsig-keygen">
1063 <term><command>tsig-keygen</command></term>
1064 <listitem>
1065 <para>
[4c24eb0a]1066 is a symlink to <command>ddns-confgen</command>
[298fee30]1067 </para>
1068 <indexterm zone="bind tsig-keygen">
1069 <primary sortas="b-tsig-keygen">tsig-keygen</primary>
1070 </indexterm>
1071 </listitem>
1072 </varlistentry>
1073
[53217a6]1074 </variablelist>
1075
1076 </sect2>
1077
1078</sect1>
Note: See TracBrowser for help on using the repository browser.