named.conf.template.in 1.42 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
#
# 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";
    # Put forwarders here if you have them
    #forwarders {
    #    1.1.1.1;
    #};
};

view "internal" {
    match-clients {
        127.0.0.0/8;
	%internal_network_withmask%;
        172.16.0.0/12;
    };

    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";
	  };

    zone "%internal_network_dotted_reverse%.in-addr.arpa" in {
        type master;
        file "reverse/%internal_network_dotted%.db";
    };
};

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";
	  };

    zone "%internal_network_dotted_reverse%.in-addr.arpa" in {
        type master;
        file "reverse/%internal_network_dotted%.db";
    };
};