You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

named.conf.local 951B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. view "view-internal" {
  2. match-clients {
  3. "acl-internal";
  4. };
  5. allow-recursion {
  6. any;
  7. };
  8. also-notify {
  9. "masters-internal";
  10. };
  11. allow-transfer {
  12. key "key-internal";
  13. };
  14. allow-update {
  15. key "key-internal";
  16. };
  17. allow-notify {
  18. key "key-internal";
  19. };
  20. {% if (salt['pillar.get']("model:dns:forwarders", []) | length) > 0 %}
  21. forwarders {
  22. {% for forwarder in salt['pillar.get']("model:dns:forwarders") %}
  23. {{ forwarder }};
  24. {% endfor %}
  25. };
  26. {% endif %}
  27. include "/etc/bind/named.conf.default-zones";
  28. include "/etc/bind/config/named.conf.local.internal";
  29. };
  30. view "view-external" {
  31. match-clients {
  32. "acl-external";
  33. };
  34. allow-recursion {
  35. none;
  36. };
  37. also-notify {
  38. "masters-external";
  39. };
  40. allow-transfer {
  41. key "key-external";
  42. };
  43. allow-update {
  44. key "key-external";
  45. };
  46. allow-notify {
  47. key "key-external";
  48. };
  49. include "/etc/bind/config/named.conf.local.external";
  50. };