bind:setup_bind9
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
bind:setup_bind9 [2016/07/02 22:51] – peter | bind:setup_bind9 [2019/11/26 21:15] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Bind - Setup Bind9 ====== | ||
- | |||
- | <file bash / | ||
- | // This is the primary configuration file for the BIND DNS server named. | ||
- | // | ||
- | // Please read / | ||
- | // structure of BIND configuration files in Debian, *BEFORE* you customize | ||
- | // this configuration file. | ||
- | // | ||
- | // If you are just adding zones, please do that in / | ||
- | |||
- | include "/ | ||
- | include "/ | ||
- | #include "/ | ||
- | </ | ||
- | |||
- | |||
- | <file bash / | ||
- | acl " | ||
- | | ||
- | | ||
- | | ||
- | }; | ||
- | |||
- | |||
- | options { | ||
- | directory "/ | ||
- | |||
- | // version statement - inhibited for security | ||
- | // (avoids hacking any known weaknesses) | ||
- | version " | ||
- | |||
- | // If there is a firewall between you and nameservers you want | ||
- | // to talk to, you may need to fix the firewall to allow multiple | ||
- | // ports to talk. See http:// | ||
- | |||
- | // If your ISP provided one or more IP addresses for stable | ||
- | // nameservers, | ||
- | // Uncomment the following block, and insert the addresses replacing | ||
- | // the all-0' | ||
- | |||
- | // forwarders { | ||
- | // 0.0.0.0; | ||
- | // }; | ||
- | forwarders { | ||
- | // Sure Public DNS | ||
- | 83.137.248.244; | ||
- | 93.187.151.197; | ||
- | |||
- | // Google Public DNS | ||
- | //8.8.8.8; | ||
- | //8.8.4.4; | ||
- | |||
- | // OpenDNS | ||
- | // | ||
- | // | ||
- | }; | ||
- | |||
- | |||
- | // | ||
- | // If BIND logs error messages about the root key being expired, | ||
- | // you will need to update your keys. See https:// | ||
- | // | ||
- | # | ||
- | dnssec-enable no; | ||
- | dnssec-validation no; | ||
- | |||
- | auth-nxdomain no; # conform to RFC1035 | ||
- | listen-on-v6 { any; }; | ||
- | |||
- | allow-query { any; }; | ||
- | allow-transfer { trusted; }; | ||
- | allow-recursion { trusted; }; | ||
- | }; | ||
- | </ | ||
- | |||
- | |||
- | <file bash / | ||
- | // | ||
- | // Do any local configuration here | ||
- | // | ||
- | |||
- | |||
- | acl slaves { | ||
- | // 195.234.42.0/ | ||
- | // 193.218.105.144/ | ||
- | // 193.24.212.232/ | ||
- | 212.227.123.29; | ||
- | }; | ||
- | |||
- | acl internals { | ||
- | 192.168.1.0/ | ||
- | 127.0.0.0/ | ||
- | }; | ||
- | |||
- | view " | ||
- | match-clients { internals; }; | ||
- | recursion yes; | ||
- | |||
- | zone " | ||
- | type master; | ||
- | file "/ | ||
- | allow-update { none; }; | ||
- | }; | ||
- | |||
- | // zone " | ||
- | // type master; | ||
- | // file "/ | ||
- | // allow-update { none; }; | ||
- | // }; | ||
- | |||
- | # Set zone for reverse | ||
- | zone " | ||
- | type master; | ||
- | file "/ | ||
- | allow-update { none; }; | ||
- | }; | ||
- | |||
- | include "/ | ||
- | }; | ||
- | |||
- | view " | ||
- | match-clients { any; }; | ||
- | allow-query { any; }; | ||
- | recursion no; | ||
- | zone " | ||
- | type master; | ||
- | file "/ | ||
- | allow-transfer { slaves; }; | ||
- | allow-update { none; }; | ||
- | }; | ||
- | |||
- | // zone " | ||
- | // type master; | ||
- | // file "/ | ||
- | // allow-transfer { slaves; }; | ||
- | // allow-update { none; }; | ||
- | // }; | ||
- | |||
- | # Set zone for reverse. | ||
- | zone " | ||
- | type master; | ||
- | file "/ | ||
- | allow-update { none; }; | ||
- | }; | ||
- | }; | ||
- | </ | ||
- | |||
bind/setup_bind9.1467499902.txt.gz · Last modified: 2020/07/15 09:30 (external edit)