mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-15 01:40:05 -04:00
[master] move redirect info to ARM
3511. [doc] Improve documentation of redirect zones. [RT #32756]
This commit is contained in:
parent
4f9f8fa052
commit
77845708f7
3 changed files with 57 additions and 39 deletions
2
CHANGES
2
CHANGES
|
|
@ -1,3 +1,5 @@
|
|||
3511. [doc] Improve documentation of redirect zones. [RT #32756]
|
||||
|
||||
3510. [func] "rndc status" and XML statistics channel now report
|
||||
server start and reconfiguration times. [RT #21048]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,35 +0,0 @@
|
|||
Redirect zones are used to find answers to queries when normal resolution
|
||||
would result in NXDOMAIN being returned. Only one redirect zone per view
|
||||
is currently supported.
|
||||
|
||||
To redirect to 100.100.100.2 and 2001:ffff:ffff::100.100.100.2 on NXDOMAIN
|
||||
one would configure the redirect zone like this.
|
||||
|
||||
zone "." {
|
||||
type redirect;
|
||||
file "redirect.db";
|
||||
};
|
||||
|
||||
redirect.db:
|
||||
$TTL 300
|
||||
@ IN SOA ns.example.net hostmaster.example.net 0 0 0 0 0
|
||||
@ IN NS ns.example.net
|
||||
;
|
||||
; NS records do not need address records in this zone as it is not in the
|
||||
; normal namespace.
|
||||
;
|
||||
*. IN A 100.100.100.2
|
||||
*. IN AAAA 2001:ffff:ffff::100.100.100.2
|
||||
|
||||
To redirect all Spanish names (under .ES) one would use entries like these:
|
||||
|
||||
*.ES. IN A 100.100.100.3
|
||||
*.ES. IN AAAA 2001:ffff:ffff::100.100.100.3
|
||||
|
||||
To redirect all commercial Spanish names (under COM.ES) one would use
|
||||
entries like these:
|
||||
*.COM.ES. IN A 100.100.100.4
|
||||
*.COM.ES. IN AAAA 2001:ffff:ffff::100.100.100.4
|
||||
|
||||
The redirect zone supports all possible types. It is not limited to
|
||||
A and AAAA record.
|
||||
|
|
@ -11297,16 +11297,67 @@ zone <replaceable>zone_name</replaceable> <optional><replaceable>class</replacea
|
|||
</entry>
|
||||
<entry colname="2">
|
||||
<para>
|
||||
Provides a source of answers when the normal resolution
|
||||
returns NXDOMAIN. Only one redirect zone is supported
|
||||
per view. <command>allow-query</command> can be used
|
||||
to restrict which clients see these answers.
|
||||
Redirect zones are used to provide answers to
|
||||
queries when normal resolution would result in
|
||||
NXDOMAIN being returned.
|
||||
Only one redirect zone is supported
|
||||
per view. <command>allow-query</command> can be
|
||||
used to restrict which clients see these answers.
|
||||
</para>
|
||||
<para>
|
||||
If the client has requested DNSSEC records (DO=1) and
|
||||
the NXDOMAIN response is signed then no substitution
|
||||
will occur.
|
||||
</para>
|
||||
<para>
|
||||
To redirect all NXDOMAIN responses to
|
||||
100.100.100.2 and
|
||||
2001:ffff:ffff::100.100.100.2, one would
|
||||
configure the redirect zone like this:
|
||||
</para>
|
||||
<programlisting>
|
||||
zone "." {
|
||||
type redirect;
|
||||
file "redirect.db";
|
||||
};
|
||||
</programlisting>
|
||||
<para>
|
||||
...with the zone file
|
||||
<filename>redirect.db</filename> containing the
|
||||
following:
|
||||
</para>
|
||||
<programlisting>
|
||||
$TTL 300
|
||||
@ IN SOA ns.example.net hostmaster.example.net 0 0 0 0 0
|
||||
@ IN NS ns.example.net
|
||||
;
|
||||
; NS records do not need address records in this zone as it is not in the
|
||||
; normal namespace.
|
||||
;
|
||||
*. IN A 100.100.100.2
|
||||
*. IN AAAA 2001:ffff:ffff::100.100.100.2
|
||||
</programlisting>
|
||||
<para>
|
||||
To redirect all Spanish names (under .ES) one
|
||||
would use entries like these:
|
||||
</para>
|
||||
<programlisting>
|
||||
*.ES. IN A 100.100.100.3
|
||||
*.ES. IN AAAA 2001:ffff:ffff::100.100.100.3
|
||||
</programlisting>
|
||||
<para>
|
||||
And to redirect all commercial Spanish names
|
||||
(under COM.ES) one would use entries like these:
|
||||
</para>
|
||||
<programlisting>
|
||||
*.COM.ES. IN A 100.100.100.4
|
||||
*.COM.ES. IN AAAA 2001:ffff:ffff::100.100.100.4
|
||||
</programlisting>
|
||||
<para>
|
||||
Note that the redirect zone supports all
|
||||
possible types; it is not limited to A and
|
||||
AAAA record.
|
||||
</para>
|
||||
</entry>
|
||||
</row>
|
||||
<row rowsep="0">
|
||||
|
|
|
|||
Loading…
Reference in a new issue