named.conf.options.recursor 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // Bind options (Salt managed)
  3. //
  4. options {
  5. directory "/var/cache/bind";
  6. // If there is a firewall between you and nameservers you want
  7. // to talk to, you may need to fix the firewall to allow multiple
  8. // ports to talk. See http://www.kb.cert.org/vuls/id/800113
  9. // If your ISP provided one or more IP addresses for stable
  10. // nameservers, you probably want to use them as forwarders.
  11. // Uncomment the following block, and insert the addresses replacing
  12. // the all-0's placeholder.
  13. // forwarders {
  14. // 0.0.0.0;
  15. // };
  16. //========================================================================
  17. // If BIND logs error messages about the root key being expired,
  18. // you will need to update your keys. See https://www.isc.org/bind-keys
  19. //========================================================================
  20. // Disable DNSSEC validation as it will FAIL for all ffXY domains which will
  21. // render them unuseable. As bind can only be run in all-on or all-off mode
  22. // this seems to be our only chance for now :-(
  23. dnssec-validation no;
  24. auth-nxdomain no; # conform to RFC1035
  25. listen-on-v6 { any; };
  26. allow-recursion {
  27. 127.0.0.0/8;
  28. ::1/128;
  29. // Entries from pillar
  30. {%- for entry in salt['pillar.get']('dns-server:auth:allow-recursion', []) %}
  31. {{ entry }};
  32. {%- endfor %}
  33. };
  34. // Disable notifies on non-master DNS
  35. notify no;
  36. version "Freifunk Hochstift DNS";
  37. use-v4-udp-ports { range 1024 65535; };
  38. use-v6-udp-ports { range 1024 65535; };
  39. };
  40. // Allow scraping by bind-exporter
  41. statistics-channels {
  42. inet 127.0.0.1 port 8053 allow { 127.0.0.1; };
  43. };