[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;
|
---|
[634cf991] | 6 | <!ENTITY bind-download-http
|
---|
| 7 | "http://gd.tuwien.ac.at/infosys/servers/isc/bind9/&bind-version;/bind-&bind-version;.tar.gz">
|
---|
| 8 | <!ENTITY bind-download-ftp
|
---|
| 9 | "ftp://ftp.isc.org/isc/bind9/&bind-version;/bind-&bind-version;.tar.gz">
|
---|
[40399b1] | 10 | <!ENTITY bind-md5sum "afa41f8203d50bedad65071f9b6f96d7">
|
---|
| 11 | <!ENTITY bind-size "8.1 MB">
|
---|
| 12 | <!ENTITY bind-buildsize "260 MB">
|
---|
[634cf991] | 13 | <!ENTITY bind-time "1.7 SBU (additional 13 minutes, processor independent, to
|
---|
| 14 | run the complete test suite)">
|
---|
[0931098] | 15 | ]>
|
---|
| 16 |
|
---|
[c951082] | 17 | <sect1 id="bind" xreflabel="BIND-&bind-version;">
|
---|
[53217a6] | 18 | <?dbhtml filename="bind.html"?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
[c951082] | 25 | <title>BIND-&bind-version;</title>
|
---|
[53217a6] | 26 |
|
---|
| 27 | <indexterm zone="bind">
|
---|
| 28 | <primary sortas="a-BIND">BIND</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to BIND</title>
|
---|
| 33 |
|
---|
| 34 | <para>The <application>BIND</application> package provides a DNS server
|
---|
| 35 | and client utilities. If you are only interested in the utilities, refer
|
---|
| 36 | to the <xref linkend="bind-utils"/>.</para>
|
---|
| 37 |
|
---|
[4c77a949] | 38 | &lfs71_checked;
|
---|
[40399b1] | 39 |
|
---|
[53217a6] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&bind-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&bind-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &bind-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &bind-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &bind-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated build time: &bind-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 |
|
---|
[9288855] | 62 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 63 | <itemizedlist spacing='compact'>
|
---|
| 64 | <listitem>
|
---|
[bae16652] | 65 | <para>Optional patch (if net-tools is not installed):
|
---|
[634cf991] | 66 | <ulink
|
---|
| 67 | url="&patch-root;/bind-&bind-version;-use_iproute2-1.patch"/></para>
|
---|
[9288855] | 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 |
|
---|
[53217a6] | 71 | <bridgehead renderas="sect3">BIND Dependencies</bridgehead>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[a6ac43b] | 74 | <para role="optional"><xref linkend="openssl"/></para>
|
---|
[53217a6] | 75 |
|
---|
[9288855] | 76 | <bridgehead renderas="sect4">Optional (to run the test suite)</bridgehead>
|
---|
[bae16652] | 77 | <para role="optional"><xref linkend="perl-net-dns"/> and
|
---|
| 78 | <xref linkend="net-tools"/> (you may omit net-tools by using the optional
|
---|
[40399b1] | 79 | patch to utilize iproute2, but the IPv6 tests will fail)</para>
|
---|
[53217a6] | 80 |
|
---|
[634cf991] | 81 | <bridgehead renderas="sect4">Optional (to rebuild the
|
---|
| 82 | documentation)</bridgehead>
|
---|
[27d0323] | 83 | <para role="optional"><!--<xref linkend="tetex"/> or-->
|
---|
[f1e103a] | 84 | <xref linkend="texlive"/>, and
|
---|
[df6a4c0] | 85 | <xref linkend="libxslt"/></para>
|
---|
[53217a6] | 86 |
|
---|
[3cb0c57] | 87 | <para condition="html" role="usernotes">User Notes:
|
---|
| 88 | <ulink url="&blfs-wiki;/bind"/></para>
|
---|
| 89 |
|
---|
[53217a6] | 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | <sect2 role="installation">
|
---|
| 93 | <title>Installation of BIND</title>
|
---|
| 94 |
|
---|
[bae16652] | 95 | <para>If you have chosen not to install net-tools, apply the iproute2
|
---|
| 96 | patch with the following command:</para>
|
---|
| 97 |
|
---|
| 98 | <screen><userinput>patch -Np1 -i ../bind-&bind-version;-use_iproute2-1.patch</userinput></screen>
|
---|
| 99 |
|
---|
[e29bc0b4] | 100 | <para>If you want to <command>configure</command>
|
---|
| 101 | <application>BIND</application> with the option
|
---|
| 102 | <option>--disable-static</option> fix a bug in one of the Makefiles:</para>
|
---|
| 103 | <!-- this is a bug in bind-9.8.1 that wasn't in bind-9.8.0 -->
|
---|
| 104 |
|
---|
| 105 | <screen><userinput>sed -i 's# driver.o# .libs/driver.o#' bin/tests/system/dlzexternal/Makefile.in</userinput></screen>
|
---|
| 106 |
|
---|
[53217a6] | 107 | <para>Install <application>BIND</application> by running the
|
---|
| 108 | following commands:</para>
|
---|
| 109 |
|
---|
[bae16652] | 110 | <screen><userinput>./configure --prefix=/usr \
|
---|
[d4a47c5a] | 111 | --sysconfdir=/etc \
|
---|
| 112 | --localstatedir=/var \
|
---|
| 113 | --mandir=/usr/share/man \
|
---|
| 114 | --enable-threads \
|
---|
| 115 | --with-libtool &&
|
---|
[53217a6] | 116 | make</userinput></screen>
|
---|
[a2fe8d47] | 117 |
|
---|
[ade9c75] | 118 | <para>Issue the following commands to run the complete suite of tests.
|
---|
[d4a47c5a] | 119 | First, as the <systemitem class="username">root</systemitem> user, set up
|
---|
| 120 | some test interfaces:</para>
|
---|
[ade9c75] | 121 |
|
---|
[bccbdaea] | 122 | <screen role="root"><userinput>bin/tests/system/ifconfig.sh up</userinput></screen>
|
---|
[ade9c75] | 123 |
|
---|
[4c288b0] | 124 | <para>Now run the test suite as an unprivileged user:</para>
|
---|
| 125 |
|
---|
[ade9c75] | 126 | <screen><userinput>make check 2>&1 | tee check.log</userinput></screen>
|
---|
| 127 |
|
---|
| 128 | <para>Again as <systemitem class="username">root</systemitem>, clean up the
|
---|
| 129 | test interfaces:</para>
|
---|
| 130 |
|
---|
| 131 | <screen role="root"><userinput>bin/tests/system/ifconfig.sh down</userinput></screen>
|
---|
| 132 |
|
---|
[9288855] | 133 | <para>Issue the following command to check that all 148 tests
|
---|
[ade9c75] | 134 | ran successfully:</para>
|
---|
| 135 |
|
---|
| 136 | <screen><userinput>grep "R:PASS" check.log | wc -l</userinput></screen>
|
---|
| 137 |
|
---|
| 138 | <para>Finally, install the package as the <systemitem
|
---|
| 139 | class="username">root</systemitem> user:</para>
|
---|
[a2fe8d47] | 140 |
|
---|
[53217a6] | 141 | <screen role="root"><userinput>make install &&
|
---|
[d4a47c5a] | 142 | chmod 755 /usr/lib/lib{bind9,isc{,cc,cfg},lwres,dns}.so.*.?.? &&
|
---|
| 143 |
|
---|
[16473a92] | 144 | cd doc &&
|
---|
[ade9c75] | 145 | install -v -d -m755 /usr/share/doc/bind-&bind-version;/{arm,draft,misc,rfc} &&
|
---|
[53217a6] | 146 | install -v -m644 arm/*.html \
|
---|
[ade9c75] | 147 | /usr/share/doc/bind-&bind-version;/arm &&
|
---|
[53217a6] | 148 | install -v -m644 draft/*.txt \
|
---|
[ade9c75] | 149 | /usr/share/doc/bind-&bind-version;/draft &&
|
---|
[53217a6] | 150 | install -v -m644 rfc/* \
|
---|
[ade9c75] | 151 | /usr/share/doc/bind-&bind-version;/rfc &&
|
---|
[53217a6] | 152 | install -v -m644 \
|
---|
[7ee9849] | 153 | misc/{dnssec,ipv6,migrat*,options,rfc-compliance,roadmap,sdb} \
|
---|
[ade9c75] | 154 | /usr/share/doc/bind-&bind-version;/misc</userinput></screen>
|
---|
[53217a6] | 155 | </sect2>
|
---|
| 156 |
|
---|
| 157 | <sect2 role="commands">
|
---|
| 158 | <title>Command Explanations</title>
|
---|
| 159 |
|
---|
| 160 | <para><parameter>--sysconfdir=/etc</parameter>: This parameter forces
|
---|
| 161 | <application>BIND</application> to look for configuration
|
---|
| 162 | files in <filename class='directory'>/etc</filename> instead of
|
---|
| 163 | <filename class='directory'>/usr/etc</filename>.</para>
|
---|
| 164 |
|
---|
| 165 | <para><parameter>--enable-threads</parameter>: This parameter enables
|
---|
| 166 | multi-threading capability.</para>
|
---|
| 167 |
|
---|
| 168 | <para><parameter>--with-libtool</parameter>: This parameter forces the
|
---|
| 169 | building of dynamic libraries and links the installed binaries to these
|
---|
| 170 | libraries.</para>
|
---|
[fd7e0ed6] | 171 |
|
---|
[bccbdaea] | 172 | <para><command>chmod 755
|
---|
| 173 | /usr/lib/{lib{bind9,isc{,cc,cfg},lwres,dns}.so.*.?.?}</command>:
|
---|
[76e88b3] | 174 | Enable the execute bit to prevent a warning when using
|
---|
| 175 | <command>ldd</command> to check library dependencies.</para>
|
---|
[ade9c75] | 176 |
|
---|
[d4a47c5a] | 177 | <para><command>cd doc; install ...</command>: These commands install
|
---|
| 178 | additional package documentation. Omit any or all of these commands if
|
---|
| 179 | desired.</para>
|
---|
[53217a6] | 180 | </sect2>
|
---|
| 181 |
|
---|
| 182 | <sect2 role="configuration">
|
---|
| 183 | <title>Configuring BIND</title>
|
---|
| 184 |
|
---|
| 185 | <sect3 id="bind-config">
|
---|
| 186 | <title>Config files</title>
|
---|
| 187 |
|
---|
| 188 | <para><filename>named.conf</filename>,
|
---|
| 189 | <filename>root.hints</filename>,
|
---|
| 190 | <filename>127.0.0</filename>,
|
---|
| 191 | <filename>rndc.conf</filename> and
|
---|
| 192 | <filename>resolv.conf</filename></para>
|
---|
| 193 |
|
---|
| 194 | <indexterm zone="bind bind-config">
|
---|
| 195 | <primary sortas="e-etc-named.conf">/etc/named.conf</primary>
|
---|
| 196 | </indexterm>
|
---|
| 197 |
|
---|
| 198 | <indexterm zone="bind bind-config">
|
---|
| 199 | <primary sortas="e-etc-rndc.conf">/etc/rndc.conf</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 |
|
---|
| 202 | <indexterm zone="bind bind-config">
|
---|
| 203 | <primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary>
|
---|
| 204 | </indexterm>
|
---|
| 205 |
|
---|
| 206 | <indexterm zone="bind bind-config">
|
---|
[634cf991] | 207 | <primary
|
---|
| 208 | sortas="e-etc-namedb-root.hints">/etc/namedb/root.hints</primary>
|
---|
[53217a6] | 209 | </indexterm>
|
---|
| 210 |
|
---|
| 211 | <indexterm zone="bind bind-config">
|
---|
[634cf991] | 212 | <primary
|
---|
| 213 | sortas="e-etc-namedb-pz-127.0.0.0">/etc/namedb/pz/127.0.0.0</primary>
|
---|
[53217a6] | 214 | </indexterm>
|
---|
| 215 | </sect3>
|
---|
| 216 |
|
---|
| 217 | <sect3>
|
---|
| 218 | <title>Configuration Information</title>
|
---|
| 219 |
|
---|
| 220 | <para><application>BIND</application> will be configured to run in a
|
---|
| 221 | <command>chroot</command> jail as an unprivileged user (<systemitem
|
---|
| 222 | class="username">named</systemitem>). This configuration is more secure
|
---|
| 223 | in that a DNS compromise can only affect a few files in the <systemitem
|
---|
| 224 | class="username">named</systemitem> user's <envar>HOME</envar>
|
---|
| 225 | directory.</para>
|
---|
| 226 |
|
---|
| 227 | <para>Create the unprivileged user and group <systemitem
|
---|
| 228 | class="username">named</systemitem>:</para>
|
---|
| 229 |
|
---|
[b785ab29] | 230 | <screen role="root"><userinput>groupadd -g 20 named &&
|
---|
[9288855] | 231 | useradd -c "BIND Owner" -g named -s /bin/false -u 20 named &&
|
---|
[068bb16] | 232 | install -d -m770 -o named -g named /srv/named</userinput></screen>
|
---|
[53217a6] | 233 |
|
---|
| 234 | <para>Set up some files, directories and devices needed by
|
---|
| 235 | <application>BIND</application>:</para>
|
---|
| 236 |
|
---|
[068bb16] | 237 | <screen role="root"><userinput>cd /srv/named &&
|
---|
[634cf991] | 238 | mkdir -p dev etc/namedb/{slave,pz} usr/lib/engines var/run/named &&
|
---|
[068bb16] | 239 | mknod /srv/named/dev/null c 1 3 &&
|
---|
| 240 | mknod /srv/named/dev/random c 1 8 &&
|
---|
| 241 | chmod 666 /srv/named/dev/{null,random} &&
|
---|
[634cf991] | 242 | cp /etc/localtime etc &&
|
---|
| 243 | touch /srv/named/managed-keys.bind &&
|
---|
| 244 | cp /usr/lib/engines/libgost.so usr/lib/engines &&
|
---|
[60bb78f] | 245 | [ $(uname -m) = x86_64 ] && ln -sv lib usr/lib64</userinput></screen>
|
---|
[0931098] | 246 |
|
---|
[634cf991] | 247 | <para>The <filename>rndc.conf</filename> file contains information for
|
---|
| 248 | controlling <command>named</command> operations with the
|
---|
| 249 | <command>rndc</command> utility. Generate a key for use in the <filename>named.conf</filename> and <filename>rdnc.conf</filename> with the
|
---|
[53217a6] | 250 | <command>rndc-confgen</command> command:</para>
|
---|
[b8214dc6] | 251 |
|
---|
[634cf991] | 252 | <screen role="root"><userinput>rndc-confgen -r /dev/urandom -b 512 > /etc/rndc.conf &&
|
---|
| 253 | sed '/conf/d;/^#/!d;s:^# ::' /etc/rndc.conf > /srv/named/etc/named.conf</userinput></screen>
|
---|
[b8214dc6] | 254 |
|
---|
[634cf991] | 255 | <para>Complete the <filename>named.conf</filename> file from which
|
---|
[53217a6] | 256 | <command>named</command> will read the location of zone files, root
|
---|
| 257 | name servers and secure DNS keys:</para>
|
---|
[0931098] | 258 |
|
---|
[634cf991] | 259 | <screen role="root"><?dbfo keep-together="auto"?><userinput>cat >> /srv/named/etc/named.conf << "EOF"
|
---|
| 260 | <literal>options {
|
---|
| 261 | directory "/etc/namedb";
|
---|
[0931098] | 262 | pid-file "/var/run/named.pid";
|
---|
| 263 | statistics-file "/var/run/named.stats";
|
---|
[53217a6] | 264 |
|
---|
[634cf991] | 265 | };
|
---|
| 266 | zone "." {
|
---|
| 267 | type hint;
|
---|
| 268 | file "root.hints";
|
---|
| 269 | };
|
---|
| 270 | zone "0.0.127.in-addr.arpa" {
|
---|
| 271 | type master;
|
---|
| 272 | file "pz/127.0.0";
|
---|
| 273 | };
|
---|
[1c2cfae1] | 274 |
|
---|
| 275 | // Bind 9 now logs by default through syslog (except debug).
|
---|
| 276 | // These are the default logging rules.
|
---|
| 277 |
|
---|
| 278 | logging {
|
---|
[634cf991] | 279 | category default { default_syslog; default_debug; };
|
---|
| 280 | category unmatched { null; };
|
---|
[1c2cfae1] | 281 |
|
---|
| 282 | channel default_syslog {
|
---|
| 283 | syslog daemon; // send to syslog's daemon
|
---|
| 284 | // facility
|
---|
| 285 | severity info; // only send priority info
|
---|
| 286 | // and higher
|
---|
| 287 | };
|
---|
| 288 |
|
---|
| 289 | channel default_debug {
|
---|
| 290 | file "named.run"; // write to named.run in
|
---|
| 291 | // the working directory
|
---|
| 292 | // Note: stderr is used instead
|
---|
| 293 | // of "named.run"
|
---|
| 294 | // if the server is started
|
---|
| 295 | // with the '-f' option.
|
---|
| 296 | severity dynamic; // log at the server's
|
---|
| 297 | // current debug level
|
---|
| 298 | };
|
---|
| 299 |
|
---|
| 300 | channel default_stderr {
|
---|
| 301 | stderr; // writes to stderr
|
---|
| 302 | severity info; // only send priority info
|
---|
| 303 | // and higher
|
---|
| 304 | };
|
---|
| 305 |
|
---|
| 306 | channel null {
|
---|
[634cf991] | 307 | null; // toss anything sent to
|
---|
[1c2cfae1] | 308 | // this channel
|
---|
| 309 | };
|
---|
[53217a6] | 310 | };</literal>
|
---|
| 311 | EOF</userinput></screen>
|
---|
[16473a92] | 312 |
|
---|
[53217a6] | 313 | <para>Create a zone file with the following contents:</para>
|
---|
[0931098] | 314 |
|
---|
[068bb16] | 315 | <screen role="root"><userinput>cat > /srv/named/etc/namedb/pz/127.0.0 << "EOF"
|
---|
[53217a6] | 316 | <literal>$TTL 3D
|
---|
[0931098] | 317 | @ IN SOA ns.local.domain. hostmaster.local.domain. (
|
---|
| 318 | 1 ; Serial
|
---|
| 319 | 8H ; Refresh
|
---|
| 320 | 2H ; Retry
|
---|
| 321 | 4W ; Expire
|
---|
| 322 | 1D) ; Minimum TTL
|
---|
| 323 | NS ns.local.domain.
|
---|
[53217a6] | 324 | 1 PTR localhost.</literal>
|
---|
| 325 | EOF</userinput></screen>
|
---|
[0931098] | 326 |
|
---|
[53217a6] | 327 | <para>Create the <filename>root.hints</filename> file with the following
|
---|
| 328 | commands:</para>
|
---|
[0931098] | 329 |
|
---|
[53217a6] | 330 | <note>
|
---|
| 331 | <para>Caution must be used to ensure there are no leading spaces in
|
---|
| 332 | this file.</para>
|
---|
| 333 | </note>
|
---|
[0931098] | 334 |
|
---|
[068bb16] | 335 | <screen role="root"><userinput>cat > /srv/named/etc/namedb/root.hints << "EOF"
|
---|
[53217a6] | 336 | <literal>. 6D IN NS A.ROOT-SERVERS.NET.
|
---|
[0931098] | 337 | . 6D IN NS B.ROOT-SERVERS.NET.
|
---|
| 338 | . 6D IN NS C.ROOT-SERVERS.NET.
|
---|
| 339 | . 6D IN NS D.ROOT-SERVERS.NET.
|
---|
| 340 | . 6D IN NS E.ROOT-SERVERS.NET.
|
---|
| 341 | . 6D IN NS F.ROOT-SERVERS.NET.
|
---|
| 342 | . 6D IN NS G.ROOT-SERVERS.NET.
|
---|
| 343 | . 6D IN NS H.ROOT-SERVERS.NET.
|
---|
| 344 | . 6D IN NS I.ROOT-SERVERS.NET.
|
---|
| 345 | . 6D IN NS J.ROOT-SERVERS.NET.
|
---|
| 346 | . 6D IN NS K.ROOT-SERVERS.NET.
|
---|
| 347 | . 6D IN NS L.ROOT-SERVERS.NET.
|
---|
| 348 | . 6D IN NS M.ROOT-SERVERS.NET.
|
---|
| 349 | A.ROOT-SERVERS.NET. 6D IN A 198.41.0.4
|
---|
[1c2cfae1] | 350 | B.ROOT-SERVERS.NET. 6D IN A 192.228.79.201
|
---|
[0931098] | 351 | C.ROOT-SERVERS.NET. 6D IN A 192.33.4.12
|
---|
| 352 | D.ROOT-SERVERS.NET. 6D IN A 128.8.10.90
|
---|
| 353 | E.ROOT-SERVERS.NET. 6D IN A 192.203.230.10
|
---|
| 354 | F.ROOT-SERVERS.NET. 6D IN A 192.5.5.241
|
---|
| 355 | G.ROOT-SERVERS.NET. 6D IN A 192.112.36.4
|
---|
| 356 | H.ROOT-SERVERS.NET. 6D IN A 128.63.2.53
|
---|
| 357 | I.ROOT-SERVERS.NET. 6D IN A 192.36.148.17
|
---|
| 358 | J.ROOT-SERVERS.NET. 6D IN A 192.58.128.30
|
---|
| 359 | K.ROOT-SERVERS.NET. 6D IN A 193.0.14.129
|
---|
[9288855] | 360 | L.ROOT-SERVERS.NET. 6D IN A 199.7.83.42
|
---|
[53217a6] | 361 | M.ROOT-SERVERS.NET. 6D IN A 202.12.27.33</literal>
|
---|
| 362 | EOF</userinput></screen>
|
---|
[f45b1953] | 363 |
|
---|
[53217a6] | 364 | <para>The <filename>root.hints</filename> file is a list of root
|
---|
| 365 | name servers. This file must be updated periodically with the
|
---|
| 366 | <command>dig</command> utility. A current copy of root.hints can be
|
---|
| 367 | obtained from <ulink url="ftp://rs.internic.net/domain/named.root" />.
|
---|
| 368 | Consult the <ulink url="http://www.bind9.net/Bv9ARM.html">BIND 9
|
---|
| 369 | Administrator Reference Manual</ulink> for details.</para>
|
---|
| 370 |
|
---|
| 371 | <para>Create or modify <filename>resolv.conf</filename> to use the new
|
---|
| 372 | name server with the following commands:</para>
|
---|
[f45b1953] | 373 |
|
---|
[53217a6] | 374 | <note>
|
---|
[3cb0c57] | 375 | <para>Replace <replaceable><yourdomain.com></replaceable> with
|
---|
[53217a6] | 376 | your own valid domain name.</para>
|
---|
| 377 | </note>
|
---|
| 378 |
|
---|
| 379 | <screen role="root"><userinput>cp /etc/resolv.conf /etc/resolv.conf.bak &&
|
---|
| 380 | cat > /etc/resolv.conf << "EOF"
|
---|
[3cb0c57] | 381 | <literal>search <replaceable><yourdomain.com></replaceable>
|
---|
[53217a6] | 382 | nameserver 127.0.0.1</literal>
|
---|
| 383 | EOF</userinput></screen>
|
---|
| 384 |
|
---|
| 385 | <para>Set permissions on the <command>chroot</command> jail with the
|
---|
| 386 | following command:</para>
|
---|
| 387 |
|
---|
[634cf991] | 388 | <screen role="root"><userinput>chown -R named:named /srv/named</userinput></screen>
|
---|
[53217a6] | 389 |
|
---|
| 390 | </sect3>
|
---|
| 391 |
|
---|
| 392 | <sect3 id="bind-init">
|
---|
| 393 | <title>Boot Script</title>
|
---|
| 394 |
|
---|
| 395 | <para>To start the DNS server at boot, install the
|
---|
| 396 | <filename>/etc/rc.d/init.d/bind</filename> init script included
|
---|
[5254d12] | 397 | in the <xref linkend="bootscripts"/> package.</para>
|
---|
[53217a6] | 398 |
|
---|
| 399 | <indexterm zone="bind bind-init">
|
---|
| 400 | <primary sortas="f-bind">bind</primary>
|
---|
| 401 | </indexterm>
|
---|
| 402 |
|
---|
| 403 | <screen role="root"><userinput>make install-bind</userinput></screen>
|
---|
| 404 |
|
---|
| 405 | <para>Now start <application>BIND</application> with
|
---|
| 406 | the new boot script:</para>
|
---|
| 407 |
|
---|
| 408 | <screen role="root"><userinput>/etc/rc.d/init.d/bind start</userinput></screen>
|
---|
| 409 |
|
---|
| 410 | </sect3>
|
---|
| 411 |
|
---|
| 412 | <sect3>
|
---|
| 413 | <title>Testing BIND</title>
|
---|
| 414 |
|
---|
| 415 | <para>Test out the new <application>BIND</application> 9 installation.
|
---|
| 416 | First query the local host address with <command>dig</command>:</para>
|
---|
| 417 |
|
---|
| 418 | <screen><userinput>dig -x 127.0.0.1</userinput></screen>
|
---|
| 419 |
|
---|
| 420 | <para>Now try an external name lookup, taking note of the speed
|
---|
| 421 | difference in repeated lookups due to the caching. Run the
|
---|
| 422 | <command>dig</command> command twice on the same address:</para>
|
---|
| 423 |
|
---|
[4e88613] | 424 | <screen><userinput>dig www.&lfs-domainname; &&
|
---|
| 425 | dig www.&lfs-domainname;</userinput></screen>
|
---|
[53217a6] | 426 |
|
---|
| 427 | <para>You can see almost instantaneous results with the named caching
|
---|
| 428 | lookups. Consult the <application>BIND</application> Administrator
|
---|
| 429 | Reference Manual located at <filename>doc/arm/Bv9ARM.html</filename>
|
---|
| 430 | in the package source tree, for further configuration options.</para>
|
---|
| 431 |
|
---|
| 432 | </sect3>
|
---|
| 433 |
|
---|
| 434 | </sect2>
|
---|
| 435 |
|
---|
| 436 | <sect2 role="content">
|
---|
| 437 | <title>Contents</title>
|
---|
| 438 |
|
---|
| 439 | <segmentedlist>
|
---|
| 440 | <segtitle>Installed Programs</segtitle>
|
---|
| 441 | <segtitle>Installed Libraries</segtitle>
|
---|
| 442 | <segtitle>Installed Directories</segtitle>
|
---|
| 443 |
|
---|
| 444 | <seglistitem>
|
---|
| 445 | <seg>dig, dnssec-keygen, dnssec-signzone, host, isc-config.sh, lwresd,
|
---|
| 446 | named, named-checkconf, named-checkzone, nslookup, nsupdate, rndc, and
|
---|
| 447 | rndc-confgen</seg>
|
---|
[3cb0c57] | 448 | <seg>libbind9.{so,a}, libdns.{so,a}, libisc.{so,a}, libisccc.{so,a},
|
---|
| 449 | libisccfg.{so,a}, and liblwres.{so,a}</seg>
|
---|
[068bb16] | 450 | <seg>/srv/named, /usr/include/bind9, /usr/include/dns, /usr/include/dst,
|
---|
[53217a6] | 451 | /usr/include/isc, /usr/include/isccc, /usr/include/isccfg,
|
---|
| 452 | /usr/include/lwres, and /usr/share/doc/bind-&bind-version;</seg>
|
---|
| 453 | </seglistitem>
|
---|
| 454 | </segmentedlist>
|
---|
| 455 |
|
---|
| 456 | <variablelist>
|
---|
| 457 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 458 | <?dbfo list-presentation="list"?>
|
---|
| 459 | <?dbhtml list-presentation="table"?>
|
---|
| 460 |
|
---|
| 461 | <varlistentry id="dig">
|
---|
| 462 | <term><command>dig</command></term>
|
---|
| 463 | <listitem>
|
---|
| 464 | <para>interrogates DNS servers.</para>
|
---|
| 465 | <indexterm zone="bind dig">
|
---|
| 466 | <primary sortas="b-dig">dig</primary>
|
---|
| 467 | </indexterm>
|
---|
| 468 | </listitem>
|
---|
| 469 | </varlistentry>
|
---|
| 470 |
|
---|
| 471 | <varlistentry id="dnssec-keygen">
|
---|
| 472 | <term><command>dnssec-keygen</command></term>
|
---|
| 473 | <listitem>
|
---|
| 474 | <para>is a key generator for secure DNS.</para>
|
---|
| 475 | <indexterm zone="bind dnssec-keygen">
|
---|
| 476 | <primary sortas="b-dnssec-keygen">dnssec-keygen</primary>
|
---|
| 477 | </indexterm>
|
---|
| 478 | </listitem>
|
---|
| 479 | </varlistentry>
|
---|
| 480 |
|
---|
| 481 | <varlistentry id="dnssec-signzone">
|
---|
| 482 | <term><command>dnssec-signzone</command></term>
|
---|
| 483 | <listitem>
|
---|
| 484 | <para>generates signed versions of zone files.</para>
|
---|
| 485 | <indexterm zone="bind dnssec-signzone">
|
---|
| 486 | <primary sortas="b-dnssec-signzone">dnssec-signzone</primary>
|
---|
| 487 | </indexterm>
|
---|
| 488 | </listitem>
|
---|
| 489 | </varlistentry>
|
---|
| 490 |
|
---|
| 491 | <varlistentry id="host">
|
---|
| 492 | <term><command>host</command></term>
|
---|
| 493 | <listitem>
|
---|
| 494 | <para>is a utility for DNS lookups.</para>
|
---|
| 495 | <indexterm zone="bind host">
|
---|
| 496 | <primary sortas="b-host">host</primary>
|
---|
| 497 | </indexterm>
|
---|
| 498 | </listitem>
|
---|
| 499 | </varlistentry>
|
---|
| 500 |
|
---|
| 501 | <varlistentry id="lwresd">
|
---|
| 502 | <term><command>lwresd</command></term>
|
---|
| 503 | <listitem>
|
---|
| 504 | <para>is a caching-only name server for local process use.</para>
|
---|
| 505 | <indexterm zone="bind lwresd">
|
---|
| 506 | <primary sortas="b-lwresd">lwresd</primary>
|
---|
| 507 | </indexterm>
|
---|
| 508 | </listitem>
|
---|
| 509 | </varlistentry>
|
---|
| 510 |
|
---|
| 511 | <varlistentry id="named">
|
---|
| 512 | <term><command>named</command></term>
|
---|
| 513 | <listitem>
|
---|
| 514 | <para>is the name server daemon.</para>
|
---|
| 515 | <indexterm zone="bind named">
|
---|
| 516 | <primary sortas="b-named">named</primary>
|
---|
| 517 | </indexterm>
|
---|
| 518 | </listitem>
|
---|
| 519 | </varlistentry>
|
---|
| 520 |
|
---|
| 521 | <varlistentry id="named-checkconf">
|
---|
| 522 | <term><command>named-checkconf</command></term>
|
---|
| 523 | <listitem>
|
---|
| 524 | <para>checks the syntax of <filename>named.conf</filename>
|
---|
| 525 | files.</para>
|
---|
| 526 | <indexterm zone="bind named-checkconf">
|
---|
| 527 | <primary sortas="b-named-checkconf">named-checkconf</primary>
|
---|
| 528 | </indexterm>
|
---|
| 529 | </listitem>
|
---|
| 530 | </varlistentry>
|
---|
| 531 |
|
---|
| 532 | <varlistentry id="named-checkzone">
|
---|
| 533 | <term><command>named-checkzone</command></term>
|
---|
| 534 | <listitem>
|
---|
| 535 | <para>checks zone file validity.</para>
|
---|
| 536 | <indexterm zone="bind named-checkzone">
|
---|
| 537 | <primary sortas="b-named-checkzone">named-checkzone</primary>
|
---|
| 538 | </indexterm>
|
---|
| 539 | </listitem>
|
---|
| 540 | </varlistentry>
|
---|
| 541 |
|
---|
| 542 | <varlistentry id="nslookup">
|
---|
| 543 | <term><command>nslookup</command></term>
|
---|
| 544 | <listitem>
|
---|
| 545 | <para>is a program used to query Internet domain nameservers.</para>
|
---|
| 546 | <indexterm zone="bind nslookup">
|
---|
| 547 | <primary sortas="b-nslookup">nslookup</primary>
|
---|
| 548 | </indexterm>
|
---|
| 549 | </listitem>
|
---|
| 550 | </varlistentry>
|
---|
| 551 |
|
---|
| 552 | <varlistentry id="nsupdate">
|
---|
| 553 | <term><command>nsupdate</command></term>
|
---|
| 554 | <listitem>
|
---|
| 555 | <para>is used to submit DNS update requests.</para>
|
---|
| 556 | <indexterm zone="bind nsupdate">
|
---|
| 557 | <primary sortas="b-nsupdate">nsupdate</primary>
|
---|
| 558 | </indexterm>
|
---|
| 559 | </listitem>
|
---|
| 560 | </varlistentry>
|
---|
| 561 |
|
---|
| 562 | <varlistentry id="rndc">
|
---|
| 563 | <term><command>rndc</command></term>
|
---|
| 564 | <listitem>
|
---|
| 565 | <para>controls the operation of <application>BIND</application>.</para>
|
---|
| 566 | <indexterm zone="bind rndc">
|
---|
| 567 | <primary sortas="b-rndc">rndc</primary>
|
---|
| 568 | </indexterm>
|
---|
| 569 | </listitem>
|
---|
| 570 | </varlistentry>
|
---|
| 571 |
|
---|
| 572 | <varlistentry id="rndc-confgen">
|
---|
| 573 | <term><command>rndc-confgen</command></term>
|
---|
| 574 | <listitem>
|
---|
| 575 | <para>generates <filename>rndc.conf</filename> files.</para>
|
---|
| 576 | <indexterm zone="bind rndc-confgen">
|
---|
| 577 | <primary sortas="b-rndc-confgen">rndc-confgen</primary>
|
---|
| 578 | </indexterm>
|
---|
| 579 | </listitem>
|
---|
| 580 | </varlistentry>
|
---|
| 581 |
|
---|
| 582 | </variablelist>
|
---|
| 583 |
|
---|
| 584 | </sect2>
|
---|
| 585 |
|
---|
| 586 | </sect1>
|
---|