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