Ticket #63536: named.conf

File named.conf, 3.6 KB (added by Kyosho (Frank Fallon), 3 years ago)

BIND9 Configuration File

Line 
1// *******************************************************************************
2//
3// Declares control channels to be used by the rndc utility.
4//
5// This must be enabled on Mac OS X Server for Server Status to provide valid
6// information! (Remove the leading slashes to enable.)
7//
8//        **** THIS FILE IS LOCATED AT: /opt/local/etc/named.conf ****
9//
10//      ** ON A MAC, USE THE FINDER GO MENU, GO TO FOLDER AND PASTE IN DIRECTORY **
11//
12// *******************************************************************************
13
14include "/opt/local/etc/rndc.key";
15
16controls {
17      unix "/var/run/ndc" perm 0600 owner 0 group 0;
18      inet 127.0.0.1 port 953 allow { any; } keys { "rndc-key"; };
19};
20
21// *******************************************************************************
22// It is recommended that 127.0.0.1 be the only address used.
23// This also allows non-privileged users on the local host to manage
24// your name server.
25// *******************************************************************************
26
27options {
28        // Location of Zone files.
29        directory "/opt/local/var/named";
30
31        // DNS forwarding can be set to Google DNS (for unresolved queries).
32      // Here it is not set, allowing Root Hints to be used (fundamental DNS design)>
33      // forwarders {
34        //    8.8.8.8;
35      // };
36
37      listen-on-v6 { none; };
38      listen-on { 172.16.10.21; 127.0.0.1; };
39
40        recursion yes;
41        allow-recursion { any; };
42        allow-transfer { any; };
43        allow-update { any; };
44
45        dnssec-validation no;
46        pid-file "/opt/local/var/run/named/named.pid";
47};
48
49// *******************************************************************************
50//
51// Configuration of Log Files, located in directory "/var/log/named"
52//
53// *******************************************************************************
54
55 logging {
56 
57        channel default {
58                file "/var/log/named/named.log";
59                severity info;
60                print-category yes;
61                print-severity yes;
62                print-time yes;
63        };
64 
65        channel named_syslog {
66                syslog daemon;
67                severity info;
68                print-category yes;
69                print-severity yes;
70                print-time yes;                                                 
71        };
72 
73 
74        category default        { default; named_syslog; };
75        category config         { default; };
76        category queries        { null; };
77        category lame-servers   { null; };
78        category update         { default; };
79        category xfer-in        { default; };
80        category xfer-out       { default; };
81        category notify         { default; };                             
82        category security       { default; };
83};
84
85// *******************************************************************************
86//
87// Configuration of Zone Files, located in directory "/opt/local/var/named"
88//
89// *******************************************************************************
90
91zone "." IN {
92        type hint;
93        file "db.cache";
94};
95
96zone "localhost" IN {
97        type master;
98        file "db.localhost";
99        allow-update { none; };
100};
101
102zone "0.0.127.in-addr.arpa" IN {
103        type master;
104        file "db.127.0.0";
105        allow-update { none; };
106};
107
108zone "dc.mro.local" {
109    type forward;
110    forward only;
111    forwarders { 192.168.2.219; };
112};   
113
114zone "mro.local" {
115    type forward;
116    forward only;
117    forwarders { 192.168.2.227; };
118};
119
120zone "zmmapple.com" {
121    type master;
122    file "db.zmmapple.com";
123    allow-update { key rndc-key; };
124};
125
126zone "10.16.172.in-addr.arpa" {
127    type master;
128    file "db.172.16.10";
129    allow-update { key rndc-key; };
130};