HP-UX Reference (11i v3 07/02) - 4 File Formats (vol 8)

n
named.conf(4) named.conf(4)
(BIND 9.3)
zone options can have default values specified in the
view statement; these view-specific
defaults take precedence over those in the
options
statement. See The options State-
ment section.
zone_statement Zones defined within a
view statement will only be accessible to clients that match the
view. By defining a zone of the same name in multiple views, different zone data can be
given to different clients; for example,
internal and external clients in a split DNS
setup. See The zone Statement section.
If there are no
view statements in the configuration file, a default view that matches any client is
automatically created in class
IN, and any zone statements specified on the top level of the configuration
file are considered to be part of this default view. If any explicit
view statements are present, all zone
statements must occur inside view statements.
Here is an example of a typical split DNS setup, implemented with
view statements.
view "internal" {
// This should match our internal networks.
match-clients { 10.0.0.0/8; };
// Provide recursive service to internal clients only.
recursion yes;
// Provide a complete view of the example.com zone
// including addresses of internal hosts.
zone "example.com" {
type master;
file "example-internal.db";
};
};
view "external" {
match-clients { any; };
// Refuse recursive service to external clients.
recursion no;
// Provide a restricted view of the example.com zone
// containing only publicly accessible hosts.
zone "example.com" {
type master;
file "example-external.db";
};
};
The zone Statement
zone Statement Grammar
zone zone_name [ class ][{
type ( master | slave | hint
| stub | forward | delegation-only ) ;
[ allow-notify { address_match_list }; ]
[ allow-query { address_match_list }; ]
[ allow-transfer { address_match_list }; ]
[ allow-update { address_match_list }; ]
[ allow-update-forwarding { address_match_list }; ]
[ also-notify { ( ip_addr [ port ip_port ] ; )... }; ]
[ alt-transfer-source ( ip4_addr | * )[port ip_port ] ; ]
[ alt-transfer-source-v6 ( ip6_addr | * )[port ip_port ] ; ]
[ check-names ( warn | fail | ignore ) ; ]
[ database string ; ]
[ delegation-only yes_or_no ; ]
[ dialup dialup_option ; ]
[ file string ; ]
[ forward ( only | first ) ; ]
[ forwarders { ( ip_addr [ port ip_port ] ; )... }; ]
[ ixfr-from-differences yes_or_no ; ]
[ key-directory path_name ; ]
[ masters [ port ip_port ] { (
256 Hewlett-Packard Company 24 HP-UX 11i Version 3: February 2007