2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

Untabified - the PDF conversion does not deal well with tabs

This commit is contained in:
Andreas Gustafsson
2001-05-15 20:58:08 +00:00
parent eee33df05a
commit c85c8a5574

View File

@@ -2,7 +2,7 @@
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN" <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN"
"http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"> "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd">
<!-- File: $Id: Bv9ARM-book.xml,v 1.132 2001/05/14 20:44:14 bwelling Exp $ --> <!-- File: $Id: Bv9ARM-book.xml,v 1.133 2001/05/15 20:58:08 gson Exp $ -->
<book> <book>
<title>BIND 9 Administrator Reference Manual</title> <title>BIND 9 Administrator Reference Manual</title>
@@ -452,8 +452,8 @@ from outside clients are refused.</para>
// Two corporate subnets we wish to allow queries from. // Two corporate subnets we wish to allow queries from.
acl "corpnets" { 192.168.4.0/24; 192.168.7.0/24; }; acl "corpnets" { 192.168.4.0/24; 192.168.7.0/24; };
options { options {
directory "/etc/namedb"; // Working directory directory "/etc/namedb"; // Working directory
pid-file "named.pid"; // Put pid file in working dir pid-file "named.pid"; // Put pid file in working dir
allow-query { "corpnets"; }; allow-query { "corpnets"; };
}; };
// Root server hints // Root server hints
@@ -473,10 +473,10 @@ that is the master server for "<filename>example.com</filename>"
and a slave for the subdomain "<filename>eng.example.com</filename>".</para> and a slave for the subdomain "<filename>eng.example.com</filename>".</para>
<programlisting> <programlisting>
options { options {
directory "/etc/namedb"; // Working directory directory "/etc/namedb"; // Working directory
pid-file "named.pid"; // Put pid file in working dir pid-file "named.pid"; // Put pid file in working dir
allow-query { any; }; // This is the default allow-query { any; }; // This is the default
recursion no; // Do not provide recursive service recursion no; // Do not provide recursive service
}; };
// Root server hints // Root server hints
zone "." { type hint; file "root.hint"; }; zone "." { type hint; file "root.hint"; };
@@ -681,23 +681,23 @@ Use <command>dig</command> instead.</para>
<para>Administrative tools play an integral part in the management <para>Administrative tools play an integral part in the management
of a server.</para> of a server.</para>
<variablelist> <variablelist>
<varlistentry id="named-checkconf" xreflabel="Named Configuration Checking application"> <varlistentry id="named-checkconf" xreflabel="Named Configuration Checking application">
<term><command>named-checkconf</command></term> <term><command>named-checkconf</command></term>
<listitem> <listitem>
<para>The <command>named-checkconf</command> program <para>The <command>named-checkconf</command> program
checks the syntax of a <filename>named.conf</filename> file.</para> checks the syntax of a <filename>named.conf</filename> file.</para>
<cmdsynopsis label="Usage"> <cmdsynopsis label="Usage">
<command>named-checkconf</command> <command>named-checkconf</command>
<arg>-t <replaceable>directory</replaceable></arg> <arg>-t <replaceable>directory</replaceable></arg>
<arg><replaceable>filename</replaceable></arg> <arg><replaceable>filename</replaceable></arg>
</cmdsynopsis> </cmdsynopsis>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry id="named-checkzone" xreflabel="Zone Checking application"> <varlistentry id="named-checkzone" xreflabel="Zone Checking application">
<term><command>named-checkzone</command></term> <term><command>named-checkzone</command></term>
<listitem> <listitem>
<para>The <command>named-checkzone</command> program checks a master file for <para>The <command>named-checkzone</command> program checks a master file for
syntax and consistency.</para> syntax and consistency.</para>
<cmdsynopsis label="Usage"> <cmdsynopsis label="Usage">
<command>check-zone</command> <command>check-zone</command>
<arg>-dq</arg> <arg>-dq</arg>
@@ -706,7 +706,7 @@ of a server.</para>
<arg><replaceable>filename</replaceable></arg> <arg><replaceable>filename</replaceable></arg>
</cmdsynopsis> </cmdsynopsis>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry id="rndc" xreflabel="Remote Name Daemon Control application"> <varlistentry id="rndc" xreflabel="Remote Name Daemon Control application">
<term><command>rndc</command></term> <term><command>rndc</command></term>
<listitem> <listitem>
@@ -734,7 +734,7 @@ of a server.</para>
<varlistentry><term><userinput>reload <replaceable>zone</replaceable> <varlistentry><term><userinput>reload <replaceable>zone</replaceable>
<optional><replaceable>class</replaceable> <optional><replaceable>class</replaceable>
<optional><replaceable>view</replaceable></optional></optional></userinput></term> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
<listitem><para>Reload the given zone.</para></listitem> <listitem><para>Reload the given zone.</para></listitem>
</varlistentry> </varlistentry>
@@ -794,9 +794,9 @@ of a server.</para>
</variablelist> </variablelist>
<para>In <acronym>BIND</acronym> 9.2, <command>rndc</command> <para>In <acronym>BIND</acronym> 9.2, <command>rndc</command>
supports all the commands of the BIND 8 <command>ndc</command> supports all the commands of the BIND 8 <command>ndc</command>
utility except <command>ndc start</command>, which was also utility except <command>ndc start</command>, which was also
not supported in <command>ndc</command>'s channel mode.</para> not supported in <command>ndc</command>'s channel mode.</para>
<para>A configuration file is required, since all <para>A configuration file is required, since all
communication with the server is authenticated with communication with the server is authenticated with
@@ -862,7 +862,7 @@ to reload, if a nameserver on the local machine were running with
following controls statements:</para> following controls statements:</para>
<programlisting> <programlisting>
controls { controls {
inet 127.0.0.1 allow { localhost; } keys { rndc_key; }; inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
}; };
</programlisting> </programlisting>
<para>and it had an identical key statement for <para>and it had an identical key statement for
@@ -1094,21 +1094,21 @@ options {
... ...
... ...
forward only; forward only;
forwarders { // forward to external servers forwarders { // forward to external servers
<varname>bastion-ips-go-here</varname>; <varname>bastion-ips-go-here</varname>;
}; };
allow-transfer { none; }; // sample allow-transfer (no one) allow-transfer { none; }; // sample allow-transfer (no one)
allow-query { internals; externals; }; // restrict query access allow-query { internals; externals; }; // restrict query access
allow-recursion { internals; }; // restrict recursion allow-recursion { internals; }; // restrict recursion
... ...
... ...
}; };
zone "site1.example.com" { // sample slave zone zone "site1.example.com" { // sample slave zone
type master; type master;
file "m/site1.example.com"; file "m/site1.example.com";
forwarders { }; // do normal iterative forwarders { }; // do normal iterative
// resolution (do not forward) // resolution (do not forward)
allow-query { internals; externals; }; allow-query { internals; externals; };
allow-transfer { internals; }; allow-transfer { internals; };
}; };
@@ -1148,14 +1148,14 @@ acl externals { bastion-ips-go-here; };
options { options {
... ...
... ...
allow-transfer { none; }; // sample allow-transfer (no one) allow-transfer { none; }; // sample allow-transfer (no one)
allow-query { internals; externals; }; // restrict query access allow-query { internals; externals; }; // restrict query access
allow-recursion { internals; externals; }; // restrict recursion allow-recursion { internals; externals; }; // restrict recursion
... ...
... ...
}; };
zone "site1.example.com" { // sample slave zone zone "site1.example.com" { // sample slave zone
type master; type master;
file "m/site1.foo.com"; file "m/site1.foo.com";
allow-query { any; }; allow-query { any; };
@@ -1557,7 +1557,7 @@ allow-update { key host1-host2. ;};
<programlisting> <programlisting>
$ORIGIN example.com. $ORIGIN example.com.
host 3600 IN AAAA 3ffe:8050:201:1860:42::1 host 3600 IN AAAA 3ffe:8050:201:1860:42::1
</programlisting> </programlisting>
<para>While their use is deprecated, they are useful to support <para>While their use is deprecated, they are useful to support
@@ -1577,7 +1577,7 @@ host 3600 IN AAAA 3ffe:8050:201:1860:42::1
<programlisting> <programlisting>
$ORIGIN example.com. $ORIGIN example.com.
host 3600 IN A6 0 3ffe:8050:201:1860:42::1 host 3600 IN A6 0 3ffe:8050:201:1860:42::1
</programlisting> </programlisting>
<sect3> <sect3>
<title>A6 Chains</title> <title>A6 Chains</title>
@@ -1592,23 +1592,23 @@ host 3600 IN A6 0 3ffe:8050:201:1860:42::1
<para>In the company's address space:</para> <para>In the company's address space:</para>
<programlisting> <programlisting>
$ORIGIN example.com. $ORIGIN example.com.
host 3600 IN A6 64 0:0:0:0:42::1 company.example1.net. host 3600 IN A6 64 0:0:0:0:42::1 company.example1.net.
host 3600 IN A6 64 0:0:0:0:42::1 company.example2.net. host 3600 IN A6 64 0:0:0:0:42::1 company.example2.net.
</programlisting> </programlisting>
<para>ISP1 will use:</para> <para>ISP1 will use:</para>
<programlisting> <programlisting>
$ORIGIN example1.net. $ORIGIN example1.net.
company 3600 IN A6 0 3ffe:8050:201:1860:: company 3600 IN A6 0 3ffe:8050:201:1860::
</programlisting> </programlisting>
<para>ISP2 will use:</para> <para>ISP2 will use:</para>
<programlisting> <programlisting>
$ORIGIN example2.net. $ORIGIN example2.net.
company 3600 IN A6 0 1234:5678:90ab:fffa:: company 3600 IN A6 0 1234:5678:90ab:fffa::
</programlisting> </programlisting>
<para>When <literal <para>When <literal
@@ -1627,10 +1627,10 @@ company 3600 IN A6 0 1234:5678:90ab:fffa::
<programlisting> <programlisting>
$ORIGIN example.com. $ORIGIN example.com.
@ 14400 IN NS ns0 @ 14400 IN NS ns0
14400 IN NS ns1 14400 IN NS ns1
ns0 14400 IN A6 0 3ffe:8050:201:1860:42::1 ns0 14400 IN A6 0 3ffe:8050:201:1860:42::1
ns1 14400 IN A 192.168.42.1 ns1 14400 IN A 192.168.42.1
</programlisting> </programlisting>
<para>It is recommended that IPv4-in-IPv6 mapped addresses not <para>It is recommended that IPv4-in-IPv6 mapped addresses not
@@ -1656,7 +1656,7 @@ ns1 14400 IN A 192.168.42.1
<programlisting> <programlisting>
$ORIGIN 0.6.8.1.1.0.2.0.0.5.0.8.e.f.f.3.ip6.int. $ORIGIN 0.6.8.1.1.0.2.0.0.5.0.8.e.f.f.3.ip6.int.
1.0.0.0.0.0.0.0.0.0.0.0.2.4.0.0 14400 IN PTR host.example.com. 1.0.0.0.0.0.0.0.0.0.0.0.2.4.0.0 14400 IN PTR host.example.com.
</programlisting> </programlisting>
</sect2> </sect2>
<sect2> <sect2>
@@ -1671,7 +1671,7 @@ $ORIGIN 0.6.8.1.1.0.2.0.0.5.0.8.e.f.f.3.ip6.int.
<programlisting> <programlisting>
$ORIGIN \[x3ffe805002011860/64].ip6.arpa. $ORIGIN \[x3ffe805002011860/64].ip6.arpa.
\[x0042000000000001/64] 14400 IN PTR host.example.com. \[x0042000000000001/64] 14400 IN PTR host.example.com.
</programlisting> </programlisting>
</sect2> </sect2>
<sect2> <sect2>
@@ -1692,14 +1692,14 @@ $ORIGIN \[x3ffe805002011860/64].ip6.arpa.
<programlisting> <programlisting>
$ORIGIN example.com. $ORIGIN example.com.
host IN A6 64 ::1234:5678:1212:5675 cust1.example.net. host IN A6 64 ::1234:5678:1212:5675 cust1.example.net.
IN A6 64 ::1234:5678:1212:5675 subnet5.example2.net. IN A6 64 ::1234:5678:1212:5675 subnet5.example2.net.
$ORIGIN example.net. $ORIGIN example.net.
cust1 IN A6 48 0:0:0:dddd:: ipv6net.example.net. cust1 IN A6 48 0:0:0:dddd:: ipv6net.example.net.
ipv6net IN A6 0 aa:bb:cccc:: ipv6net IN A6 0 aa:bb:cccc::
$ORIGIN example2.net. $ORIGIN example2.net.
subnet5 IN A6 48 0:0:0:1:: ipv6net2.example2.net. subnet5 IN A6 48 0:0:0:1:: ipv6net2.example2.net.
ipv6net2 IN A6 0 6666:5555:4:: ipv6net2 IN A6 0 6666:5555:4::
</programlisting> </programlisting>
<para>This sets up forward lookups. To handle the reverse lookups, <para>This sets up forward lookups. To handle the reverse lookups,
@@ -1708,7 +1708,7 @@ would have:</para>
<programlisting> <programlisting>
$ORIGIN \[x00aa00bbcccc/48].ip6.arpa. $ORIGIN \[x00aa00bbcccc/48].ip6.arpa.
\[xdddd/16] IN DNAME ipv6-rev.example.com. \[xdddd/16] IN DNAME ipv6-rev.example.com.
</programlisting> </programlisting>
<para>and <literal <para>and <literal
@@ -1716,7 +1716,7 @@ $ORIGIN \[x00aa00bbcccc/48].ip6.arpa.
<programlisting> <programlisting>
$ORIGIN \[x666655550004/48].ip6.arpa. $ORIGIN \[x666655550004/48].ip6.arpa.
\[x0001/16] IN DNAME ipv6-rev.example.com. \[x0001/16] IN DNAME ipv6-rev.example.com.
</programlisting> </programlisting>
<para><literal>example.com</literal> <para><literal>example.com</literal>
@@ -1725,7 +1725,7 @@ $ORIGIN \[x666655550004/48].ip6.arpa.
<programlisting> <programlisting>
$ORIGIN ipv6-rev.example.com. $ORIGIN ipv6-rev.example.com.
\[x1234567812125675/64] IN PTR host.example.com. \[x1234567812125675/64] IN PTR host.example.com.
</programlisting> </programlisting>
</sect2> </sect2>
</sect1> </sect1>
@@ -2409,32 +2409,32 @@ used is described in <xref linkend="the_category_phrase"/>.
</para> </para>
<programlisting>channel "default_syslog" { <programlisting>channel "default_syslog" {
syslog daemon; // end to syslog's daemon syslog daemon; // end to syslog's daemon
// facility // facility
severity info; // only send priority info severity info; // only send priority info
// and higher // and higher
}; };
channel "default_debug" { channel "default_debug" {
file "named.run"; // write to named.run in file "named.run"; // write to named.run in
// the working directory // the working directory
// Note: stderr is used instead // Note: stderr is used instead
// of "named.run" // of "named.run"
// if the server is started // if the server is started
// with the '-f' option. // with the '-f' option.
severity dynamic; // log at the server's severity dynamic; // log at the server's
// current debug level // current debug level
}; };
channel "default_stderr" { // writes to stderr channel "default_stderr" { // writes to stderr
stderr; stderr;
severity info; // only send priority info severity info; // only send priority info
// and higher // and higher
}; };
channel "null" { channel "null" {
null; // toss anything sent to null; // toss anything sent to
// this channel // this channel
}; };
</programlisting> </programlisting>
@@ -3545,20 +3545,20 @@ and
or the 192.168.5/24 network will only prefer other addresses on or the 192.168.5/24 network will only prefer other addresses on
their directly connected networks.</para> their directly connected networks.</para>
<programlisting>sortlist { <programlisting>sortlist {
{ localhost; // IF the local host { localhost; // IF the local host
{ localnets; // THEN first fit on the { localnets; // THEN first fit on the
192.168.1/24; // following nets 192.168.1/24; // following nets
{ 192.168.2/24; 192.168.3/24; }; }; }; { 192.168.2/24; 192.168.3/24; }; }; };
{ 192.168.1/24; // IF on class C 192.168.1 { 192.168.1/24; // IF on class C 192.168.1
{ 192.168.1/24; // THEN use .1, or .2 or .3 { 192.168.1/24; // THEN use .1, or .2 or .3
{ 192.168.2/24; 192.168.3/24; }; }; }; { 192.168.2/24; 192.168.3/24; }; }; };
{ 192.168.2/24; // IF on class C 192.168.2 { 192.168.2/24; // IF on class C 192.168.2
{ 192.168.2/24; // THEN use .2, or .1 or .3 { 192.168.2/24; // THEN use .2, or .1 or .3
{ 192.168.1/24; 192.168.3/24; }; }; }; { 192.168.1/24; 192.168.3/24; }; }; };
{ 192.168.3/24; // IF on class C 192.168.3 { 192.168.3/24; // IF on class C 192.168.3
{ 192.168.3/24; // THEN use .3, or .1 or .2 { 192.168.3/24; // THEN use .3, or .1 or .2
{ 192.168.1/24; 192.168.2/24; }; }; }; { 192.168.1/24; 192.168.2/24; }; }; };
{ { 192.168.4/24; 192.168.5/24; }; // if .4 or .5, prefer that net { { 192.168.4/24; 192.168.5/24; }; // if .4 or .5, prefer that net
}; };
};</programlisting> };</programlisting>
<para>The following example will give reasonable behavior for the <para>The following example will give reasonable behavior for the