Merge from vendor branch BINUTILS:
[dragonfly.git] / etc / namedb / named.conf
1 // $FreeBSD: src/etc/namedb/named.conf,v 1.6.2.7 2003/02/13 13:16:51 keramida Exp $
2 // $DragonFly: src/etc/namedb/named.conf,v 1.2 2003/06/17 04:24:48 dillon Exp $
3 //
4 // Refer to the named.conf(5) and named(8) man pages for details.  If
5 // you are ever going to set up a primary server, make sure you
6 // understand the hairy details of how DNS works.  Even with
7 // simple mistakes, you can break connectivity for affected parties,
8 // or cause huge amounts of useless Internet traffic.
9
10 options {
11         directory "/etc/namedb";
12
13 // In addition to the "forwarders" clause, you can force your name
14 // server to never initiate queries of its own, but always ask its
15 // forwarders only, by enabling the following line:
16 //
17 //      forward only;
18
19 // If you've got a DNS server around at your upstream provider, enter
20 // its IP address here, and enable the line below.  This will make you
21 // benefit from its cache, thus reduce overall DNS traffic in the Internet.
22 /*
23         forwarders {
24                 127.0.0.1;
25         };
26 */
27         /*
28          * If there is a firewall between you and nameservers you want
29          * to talk to, you might need to uncomment the query-source
30          * directive below.  Previous versions of BIND always asked
31          * questions using port 53, but BIND 8.1 uses an unprivileged
32          * port by default.
33          */
34         // query-source address * port 53;
35
36         /*
37          * If running in a sandbox, you may have to specify a different
38          * location for the dumpfile.
39          */
40         // dump-file "s/named_dump.db";
41 };
42
43 // Note: the following will be supported in a future release.
44 /*
45 host { any; } {
46         topology {
47                 127.0.0.0/8;
48         };
49 };
50 */
51
52 // Setting up secondaries is way easier and a rough example for this
53 // is provided below.
54 //
55 // If you enable a local name server, don't forget to enter 127.0.0.1
56 // first in your /etc/resolv.conf so this server will be queried.
57 // Also, make sure to enable it in /etc/rc.conf.
58
59 zone "." {
60         type hint;
61         file "named.root";
62 };
63
64 zone "0.0.127.IN-ADDR.ARPA" {
65         type master;
66         file "localhost.rev";
67 };
68
69 // RFC 3152
70 zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA" {
71         type master;
72         file "localhost-v6.rev";
73 };
74
75 // RFC 1886 -- deprecated
76 zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" {
77         type master;
78         file "localhost-v6.rev";
79 };
80
81 // NB: Do not use the IP addresses below, they are faked, and only
82 // serve demonstration/documentation purposes!
83 //
84 // Example secondary config entries.  It can be convenient to become
85 // a secondary at least for the zone your own domain is in.  Ask
86 // your network administrator for the IP address of the responsible
87 // primary.
88 //
89 // Never forget to include the reverse lookup (IN-ADDR.ARPA) zone!
90 // (This is named after the first bytes of the IP address, in reverse
91 // order, with ".IN-ADDR.ARPA" appended.)
92 //
93 // Before starting to set up a primary zone, make sure you fully
94 // understand how DNS and BIND works.  There are sometimes
95 // non-obvious pitfalls.  Setting up a secondary is simpler.
96 //
97 // NB: Don't blindly enable the examples below. :-)  Use actual names
98 // and addresses instead.
99 //
100 // NOTE!!! FreeBSD can run bind in a sandbox (see named_flags in rc.conf).
101 // The directory containing the secondary zones must be write accessible 
102 // to bind.  The following sequence is suggested:
103 //
104 //      mkdir /etc/namedb/s
105 //      chown bind:bind /etc/namedb/s
106 //      chmod 750 /etc/namedb/s
107
108 /*
109 zone "domain.com" {
110         type slave;
111         file "s/domain.com.bak";
112         masters {
113                 192.168.1.1;
114         };
115 };
116
117 zone "0.168.192.in-addr.arpa" {
118         type slave;
119         file "s/0.168.192.in-addr.arpa.bak";
120         masters {
121                 192.168.1.1;
122         };
123 };
124 */
125