Ticket #611: named.conf

File named.conf, 1.3 KB (added by bchesneau@…, 21 years ago)

files/named.conf

Line 
1// Declares control channels to be used by the rndc utility.
2//
3// This must be enabled on Mac OS X Server for Server Status to provide valid
4// information! (Remove the leading slashes to enable.)
5//
6//        **** STUFF YOU MIGHT NEED TO ENABLE ****
7//
8// controls {
9//      unix "/var/run/ndc" perm 0600 owner 0 group 0;
10//      inet 127.0.0.1 port 54 allow {any; };
11// };
12// It is recommended that 127.0.0.1 be the only address used.
13// This also allows non-privileged users on the local host to manage
14// your name server.
15
16options {
17        directory "%%PREFIX%%/var/named";
18
19        // uncomment the following lines to turn on DNS forwarding,
20        // and change the forwarind ip address(es) :
21        //forward first;
22        //forwarders {
23        //      123.123.123.123
24        //      123,123.123.123;
25        //};
26
27        listen-on-v6 { none; };
28        listen-on { 127.0.0.1; };
29
30        // to allow only specific hosts to use the DNS server:
31        //allow-query {
32        //      127.0.0.1;
33        //};
34       
35        pid-file "%%PREFIX%%/var/run/named.pid";
36};
37
38//
39// a caching only nameserver config
40//
41zone "." IN {
42        type hint;
43        file "db.cache";
44};
45
46zone "localhost" IN {
47        type master;
48        file "db.localhost";
49        allow-update { none; };
50};
51
52zone "0.0.127.in-addr.arpa" IN {
53        type master;
54        file "db.127.0.0";
55        allow-update { none; };
56};