|
Lines 1-10
Link Here
|
| 1 |
// $FreeBSD: src/etc/namedb/named.conf,v 1.6.2.5 2002/02/04 18:24:21 ume Exp $ |
1 |
// $FreeBSD: src/etc/namedb/named.conf,v 1.6.2.5 2002/02/04 18:24:21 ume Exp $ |
| 2 |
// |
2 |
// |
| 3 |
// Refer to the named.conf(5) and named(8) man pages for details. If |
3 |
// Refer to the named.conf(5) and named(8) man pages for details. If |
| 4 |
// you are ever going to setup a primary server, make sure you've |
4 |
// you are ever going to set up a primary server, make sure you |
| 5 |
// understood the hairy details of how DNS is working. Even with |
5 |
// understand the hairy details of how DNS works. Even with |
| 6 |
// simple mistakes, you can break connectivity for affected parties, |
6 |
// simple mistakes, you can break connectivity for affected parties, |
| 7 |
// or cause huge amount of useless Internet traffic. |
7 |
// or cause huge amounts of useless Internet traffic. |
| 8 |
|
8 |
|
| 9 |
options { |
9 |
options { |
| 10 |
directory "/etc/namedb"; |
10 |
directory "/etc/namedb"; |
|
Lines 16-23
Link Here
|
| 16 |
// forward only; |
16 |
// forward only; |
| 17 |
|
17 |
|
| 18 |
// If you've got a DNS server around at your upstream provider, enter |
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 |
19 |
// its IP address here, and enable the entry below. This will let you |
| 20 |
// benefit from its cache, thus reduce overall DNS traffic in the Internet. |
20 |
// benefit from its cache, thus reducing overall DNS traffic on the Internet. |
| 21 |
/* |
21 |
/* |
| 22 |
forwarders { |
22 |
forwarders { |
| 23 |
127.0.0.1; |
23 |
127.0.0.1; |
|
Lines 48-58
Link Here
|
| 48 |
}; |
48 |
}; |
| 49 |
*/ |
49 |
*/ |
| 50 |
|
50 |
|
| 51 |
// Setting up secondaries is way easier and the rough picture for this |
51 |
// Setting up secondaries is way easier and a rough example for this |
| 52 |
// is explained below. |
52 |
// is provided below. |
| 53 |
// |
53 |
// |
| 54 |
// If you enable a local name server, don't forget to enter 127.0.0.1 |
54 |
// If you enable a local name server, don't forget to enter 127.0.0.1 |
| 55 |
// into your /etc/resolv.conf so this server will be queried first. |
55 |
// first in your /etc/resolv.conf so this server will be queried. |
| 56 |
// Also, make sure to enable it in /etc/rc.conf. |
56 |
// Also, make sure to enable it in /etc/rc.conf. |
| 57 |
|
57 |
|
| 58 |
zone "." { |
58 |
zone "." { |
|
Lines 74-90
Link Here
|
| 74 |
// serve demonstration/documentation purposes! |
74 |
// serve demonstration/documentation purposes! |
| 75 |
// |
75 |
// |
| 76 |
// Example secondary config entries. It can be convenient to become |
76 |
// Example secondary config entries. It can be convenient to become |
| 77 |
// a secondary at least for the zone where your own domain is in. Ask |
77 |
// a secondary at least for the zone your own domain is in. Ask |
| 78 |
// your network administrator for the IP address of the responsible |
78 |
// your network administrator for the IP address of the responsible |
| 79 |
// primary. |
79 |
// primary. |
| 80 |
// |
80 |
// |
| 81 |
// Never forget to include the reverse lookup (IN-ADDR.ARPA) zone! |
81 |
// Never forget to include the reverse lookup (IN-ADDR.ARPA) zone! |
| 82 |
// (This is the first bytes of the respective IP address, in reverse |
82 |
// (This is named after the first bytes of the IP address, in reverse |
| 83 |
// order, with ".IN-ADDR.ARPA" appended.) |
83 |
// order, with ".IN-ADDR.ARPA" appended.) |
| 84 |
// |
84 |
// |
| 85 |
// Before starting to setup a primary zone, better make sure you fully |
85 |
// Before starting to set up a primary zone, make sure you fully |
| 86 |
// understand how DNS and BIND works, however. There are sometimes |
86 |
// understand how DNS and BIND works. There are sometimes |
| 87 |
// unobvious pitfalls. Setting up a secondary is comparably simpler. |
87 |
// non-obvious pitfalls. Setting up a secondary is simpler. |
| 88 |
// |
88 |
// |
| 89 |
// NB: Don't blindly enable the examples below. :-) Use actual names |
89 |
// NB: Don't blindly enable the examples below. :-) Use actual names |
| 90 |
// and addresses instead. |
90 |
// and addresses instead. |