named.conf.template.in 1.19 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#
# DNS configuration for @BOSSNODE@
#

#####################
# IMPORTANT!!!!
#
# Note that there are now two 'views' in this file, and unfortunately, we
# have to duplicate all zones in both of them! So, if you make any zone
# changes, make sure to make them in both places!!!
#####################

#
# global server configuration options
#
options {
    directory "/etc/namedb";
18
    %forwarders%
19
    %alsonotify%
20 21 22 23 24 25
};

view "internal" {
    match-clients {
        127.0.0.0/8;
	%internal_network_withmask%;
26
	%virtnode_network_withmask%;
27 28
    };

29 30
    allow-recursion { any; };

31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
    zone "@OURDOMAIN@" in {
        type master;
        file "@OURDOMAIN@.internal.db";
    };

    zone "0.0.127.in-addr.arpa" {
	      type master;
	      file "localhost.rev";
	  };

    zone "." in {
	      type hint;
	      file "named.root";
	  };

46
    %internal_network_reverse_zones%
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
};

view "external" {
    match-clients {
        any;
    };

    zone "@OURDOMAIN@" in {
        type master;
        file "@OURDOMAIN@.db";
    };

    zone "0.0.127.in-addr.arpa" {
	      type master;
	      file "localhost.rev";
	  };

    zone "." in {
	      type hint;
	      file "named.root";
	  };

69
    %external_network_reverse_zones%
70 71
};