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