6bf8fcd4649a33a8c7ce913440b0fb81f6c3d805
Services-DNS-Configuration.md
| ... | ... | @@ -0,0 +1,58 @@ |
| 1 | +# forwarder setup |
|
| 2 | +## BIND |
|
| 3 | + |
|
| 4 | +If you already run a local DNS server, you can tell it to query the dn42 anycast servers for the relevant domains |
|
| 5 | +by adding the following to /etc/bind/named.conf.local |
|
| 6 | + |
|
| 7 | +``` |
|
| 8 | +zone "dn42" { |
|
| 9 | + type forward; |
|
| 10 | + forwarders { 172.22.0.53; }; |
|
| 11 | +}; |
|
| 12 | +zone "22.172.in-addr.arpa" { |
|
| 13 | + type forward; |
|
| 14 | + forwarders { 172.22.0.53; }; |
|
| 15 | +}; |
|
| 16 | +zone "23.172.in-addr.arpa" { |
|
| 17 | + type forward; |
|
| 18 | + forwarders { 172.22.0.53; }; |
|
| 19 | +}; |
|
| 20 | +``` |
|
| 21 | + |
|
| 22 | +## dnsmasq |
|
| 23 | + |
|
| 24 | +If you are running dnsmasq under openwrt, you just have to add |
|
| 25 | + |
|
| 26 | +``` |
|
| 27 | +config dnsmasq |
|
| 28 | + option local '/dn42/22.172.in-addr.arpa/172.22.0.53' |
|
| 29 | +``` |
|
| 30 | + |
|
| 31 | +to /etc/config/dhcp and run /etc/init.d/dnsmasq restart. After that you are able to resolve .dn42 |
|
| 32 | +with the anycast DNS-Server, while your normal requests go to your standard DNS-resolver. |
|
| 33 | + |
|
| 34 | +for normal dnsmasq use |
|
| 35 | + |
|
| 36 | +``` |
|
| 37 | +server=/dn42/172.22.0.53 |
|
| 38 | +server=/22.172.in-addr.arpa/172.22.0.53 |
|
| 39 | +``` |
|
| 40 | +in dnsmasq.conf |
|
| 41 | + |
|
| 42 | +## PowerDNS recursor |
|
| 43 | +Add this to /etc/powerdns/recursor.conf (at least in Debian) |
|
| 44 | + |
|
| 45 | +``` |
|
| 46 | +dont-query=127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16, ::1/128, fe80::/10 |
|
| 47 | +forward-zones= dn42=172.22.0.53,22.172.in-addr.arpa=172.22.0.53,23.172.in-addr.arpa=172.22.0.53 |
|
| 48 | +``` |
|
| 49 | + |
|
| 50 | +## MaraDNS |
|
| 51 | +Put this in your mararc: |
|
| 52 | + |
|
| 53 | +``` |
|
| 54 | +ipv4_alias["dn42_root"] = "172.22.0.53" |
|
| 55 | +root_servers["dn42."] = "dn42_root" |
|
| 56 | +root_servers["22.172.in-addr.arpa."] = "dn42_root" |
|
| 57 | +root_servers["23.172.in-addr.arpa."] = "dn42_root" |
|
| 58 | +``` |
|
| ... | ... | \ No newline at end of file |