named.conf revision 41442
1// $Id: named.conf,v 1.2 1998/05/11 11:26:28 peter Exp $
2//
3// Refer to the named(8) man page for details.  If you are ever going
4// to setup a primary server, make sure you've understood the hairy
5// details of how DNS is working.  Even with simple mistakes, you can
6// break connectivity for affected parties, or cause huge amount of
7// useless Internet traffic.
8
9options {
10	directory "/etc/namedb";
11
12// In addition to the "forwarders" clause, you can force your name
13// server to never initiate queries of its own, but always ask its
14// forwarders only, by enabling the following line:
15//
16//      forward only;
17
18// If you've got a DNS server around at your upstream provider, enter
19// its IP address here, and enable the line below.  This will make you
20// benefit from its cache, thus reduce overall DNS traffic in the Internet.
21/*
22	forwarders {
23		127.0.0.1;
24	};
25*/
26	/*
27	 * If there is a firewall between you and nameservers you want
28	 * to talk to, you might need to uncomment the query-source
29	 * directive below.  Previous versions of BIND always asked
30	 * questions using port 53, but BIND 8.1 uses an unprivileged
31	 * port by default.
32	 */
33	// query-source address * port 53;
34};
35
36// Note: the following will be supported in a future release.
37/*
38host { any; } {
39	topology {
40		127.0.0.0/8;
41	};
42};
43*/
44
45// Setting up secondaries is way easier and the rough picture for this
46// is explained below.
47//
48// If you enable a local name server, don't forget to enter 127.0.0.1
49// into your /etc/resolv.conf so this server will be queried first.
50// Also, make sure to enable it in /etc/rc.conf.
51
52zone "." {
53	type hint;
54	file "named.root";
55};
56
57zone "0.0.127.IN-ADDR.ARPA" {
58	type master;
59	file "localhost.rev";
60};
61
62// NB: Do not use the IP addresses below, they are faked, and only
63// serve demonstration/documentation purposes!
64//
65// Example secondary config entries.  It can be convenient to become
66// a secondary at least for the zone where your own domain is in.  Ask
67// your network administrator for the IP address of the responsible
68// primary.
69//
70// Never forget to include the reverse lookup (IN-ADDR.ARPA) zone!
71// (This is the first bytes of the respective IP address, in reverse
72// order, with ".IN-ADDR.ARPA" appended.)
73//
74// Before starting to setup a primary zone, better make sure you fully
75// understand how DNS and BIND works, however.  There are sometimes
76// unobvious pitfalls.  Setting up a secondary is comparably simpler.
77//
78// NB: Don't blindly enable the examples below. :-)  Use actual names
79// and addresses instead.
80//
81// NOTE!!! FreeBSD runs bind in a sandbox (see named_flags in rc.conf).
82// The directory containing the secondary zones must be write accessible 
83// to bind.
84
85/*
86zone "domain.com" {
87	type slave;
88	file "s/domain.com.bak";
89	masters {
90		192.168.1.1;
91	};
92};
93
94zone "0.168.192.in-addr.arpa" {
95	type slave;
96	file "s/0.168.192.in-addr.arpa.bak";
97	masters {
98		192.168.1.1;
99	};
100};
101*/
102
103