HP-UX Reference (11i v2 03/08) - 4 File Formats (vol 8)
n
named.conf(4) named.conf(4)
Many of the options given in the
options statement can also be used within a view statement, and then
apply only when resolving queries with that view. When no view-specific value is given, the value in the
options statement is used as a default. Also, zone options can have default values specified in the view
statement; these view-specific defaults take precedence over those in the options statement.
Views are class-specific. If no class is given, class
IN is assumed. Note that all non-IN views must con-
tain 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
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 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] ; ]
Section 4−−194 Hewlett-Packard Company − 19 − HP-UX 11i Version 2: August 2003