| 1 |
// This is the primary configuration file for the BIND DNS server named. |
| 2 |
// |
| 3 |
// Please read /usr/share/doc/bind9/README.Debian for information on the |
| 4 |
// structure of BIND configuration files in Debian, *BEFORE* you customize |
| 5 |
// this configuration file. |
| 6 |
// |
| 7 |
|
| 8 |
options { |
| 9 |
directory "/etc/bind"; |
| 10 |
|
| 11 |
// If there is a firewall between you and nameservers you want |
| 12 |
// to talk to, you might need to uncomment the query-source |
| 13 |
// directive below. Previous versions of BIND always asked |
| 14 |
// questions using port 53, but BIND 8.1 and later use an unprivileged |
| 15 |
// port by default. |
| 16 |
|
| 17 |
// query-source address * port 53; |
| 18 |
|
| 19 |
// If your ISP provided one or more IP addresses for stable |
| 20 |
// nameservers, you probably want to use them as forwarders. |
| 21 |
// Uncomment the following block, and insert the addresses replacing |
| 22 |
// the all-0's placeholder. |
| 23 |
|
| 24 |
// forwarders { |
| 25 |
// 0.0.0.0; |
| 26 |
// }; |
| 27 |
|
| 28 |
auth-nxdomain no; # conform to RFC1035 |
| 29 |
|
| 30 |
}; |
| 31 |
|
| 32 |
// define a key - you should really change the secret since |
| 33 |
// all Debian boxes everywhere will have the same secret |
| 34 |
key "key" { |
| 35 |
algorithm hmac-md5; |
| 36 |
secret "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K"; |
| 37 |
}; |
| 38 |
|
| 39 |
// fortunately, using this control statement, we restrict access |
| 40 |
// to the control port 953/tcp to only the localhost and we |
| 41 |
// configure named to listen to 953 only on the lo interface |
| 42 |
controls { |
| 43 |
inet 127.0.0.1 allow { 127.0.0.1; } keys { "key"; }; |
| 44 |
|
| 45 |
}; |
| 46 |
|
| 47 |
// prime the server with knowledge of the root servers |
| 48 |
zone "." { |
| 49 |
type hint; |
| 50 |
file "/etc/bind/db.hint"; |
| 51 |
}; |
| 52 |
|
| 53 |
trusted-keys { |
| 54 |
. 256 3 1 "AQOr2tzOGZzBbIbdEsp1ENtMtNniryEiobGUFjBDQoim9jBy1q7VUan2hJ+60eIrM1oCF6jyF2fFrnOgYRnZ0zpj"; // key id = 54074 |
| 55 |
}; |
| 56 |
|
| 57 |
lwres {}; |
| 58 |
|
| 59 |
// be authoritative for the localhost forward and reverse zones, and for |
| 60 |
// broadcast zones as per RFC 1912 |
| 61 |
|
| 62 |
zone "localhost" { |
| 63 |
type master; |
| 64 |
file "/etc/bind/db.local"; |
| 65 |
}; |
| 66 |
|
| 67 |
zone "127.in-addr.arpa" { |
| 68 |
type master; |
| 69 |
file "/etc/bind/db.127"; |
| 70 |
}; |
| 71 |
|
| 72 |
// add entries for other zones below here |
| 73 |
|
| 74 |
|