HP-UX Reference (11i v2 07/12) - 4 File Formats (vol 8)

n
named.conf(4) named.conf(4)
Views are class-specific. If no class is given, class
IN is assumed. Note that all non-IN views must contain
a hint zone, since only the IN class has compiled-in default hints. If there are no view statements in the
config file, a default view that matches any client is automatically created in class IN, and any zone state-
ments 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 using 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";
};
};
zone Statement Grammar
zone zone_name [class] [{
type ( master | slave | hint | stub | forward ) ;
[ allow-notify { address_match_list};]
[ allow-query { address_match_list};]
[ allow-transfer { address_match_list};]
[ allow-update { address_match_list};]
[ update-policy { update_policy_rule [...]};]
[ allow-update-forwarding { address_match_list};]
[ also-notify { ip_addr [port ip_port] ;
[ ip_addr [port ip_port] ; ... ] }; ]
[ dialup dialup_option ; ]
[ file string ; ]
[ forward (only|first) ; ]
[ forwarders { ip_addr [port ip_port] ;
[ ip_addr [port ip_port] ; ... ] }; ]
[ masters [port ip_port] { ip_addr [port ip_port]
[key key]; [...]};]
[ max-transfer-idle-in number ; ]
[ max-transfer-idle-out number ; ]
[ max-transfer-time-in number ; ]
[ max-transfer-time-out number ; ]
[ notify yes_or_no | explicit ; ]
[ transfer-source (ip4_addr | *) [port ip_port] ; ]
[ transfer-source-v6 (ip6_addr | *) [port ip_port] ; ]
[ notify-source (ip4_addr | *) [port ip_port] ; ]
[ notify-source-v6 (ip6_addr | *) [port ip_port] ; ]
[ zone-statistics yes_or_no ; ]
[ sig-validity-interval number ; ]
[ database string ; ]
226 Hewlett-Packard Company 19 HP-UX 11i Version 2: December 2007 Update