named.conf.options.j2 879 B

1234567891011121314151617181920212223242526272829
  1. options {
  2. directory "/var/cache/bind";
  3. dnssec-validation auto;
  4. recursion yes;
  5. allow-recursion { localnets; localhost; };
  6. notify yes;
  7. also-notify {
  8. {% if bind.ffms_for_groups is defined and bind.ffms_for_groups.0 is defined %}
  9. {% for group in bind.ffms_for_groups %}
  10. {% for host in groups[group] %}
  11. {{hostvars[host].ff_network.v4_network | ipaddr(hostvars[host].server_id) | ipaddr('address') }};
  12. {% endfor %}
  13. {% endfor %}
  14. {% for host in groups['gateways'] %}
  15. {% if hostvars[host].domaenenliste is defined %}
  16. {% for domaene in hostvars[host].domaenenliste|dictsort %}
  17. {{domaenen[domaene[0]].ffv4_network | ipaddr(domaene[1].server_id) | ipaddr('address')}};
  18. {% endfor %}
  19. {% endif %}
  20. {% endfor %}
  21. {% endif %}
  22. };
  23. auth-nxdomain no; # conform to RFC1035
  24. listen-on-v6 { any; };
  25. };