named.conf.options 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.1/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. {%- if grains['id'] != 'dns01.in.ffho.net' %}
  35. // Disable notifies on non-master DNS
  36. notify no;
  37. {%- endif %}
  38. };