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