named.conf.ffnet.j2 1015 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {% for domaene in domaenen|dictsort -%}
  2. #view for (broadcast-)domain domaene-{{domaene[0]}}
  3. view "domaene-{{domaene[0]}}" {
  4. match-clients {
  5. {{domaene[1].ffv4_network}};
  6. {{domaene[1].ffv6_network}};
  7. };
  8. include "/etc/bind/named.conf.tld";
  9. include "/etc/bind/named.conf.local";
  10. include "/etc/bind/named.conf.default-zones";
  11. zone "servers.{{freifunk.kurzname}}." {
  12. type master;
  13. file "/etc/bind/db.servers.ffnet";
  14. allow-transfer {
  15. {{domaene[1].ffv4_network | ipsubnet(28,0)}};
  16. };
  17. };
  18. zone "services.{{freifunk.kurzname}}." {
  19. type master;
  20. file "/etc/bind/db.services.ffnet";
  21. allow-transfer {
  22. {{domaene[1].ffv4_network | ipsubnet(28,0)}};
  23. };
  24. };
  25. };
  26. {% endfor %}
  27. #fallback/legacy view
  28. view "external-view" {
  29. match-clients {
  30. any;
  31. {% for domaene in domaenen|dictsort %}
  32. !{{domaene[1].ffv4_network}};
  33. !{{domaene[1].ffv6_network}};
  34. {% endfor %}
  35. };
  36. include "/etc/bind/named.conf.tld";
  37. include "/etc/bind/named.conf.local";
  38. include "/etc/bind/named.conf.default-zones";
  39. };