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 956B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. logging {
  2. category default {
  3. default_stderr;
  4. };
  5. };
  6. key "key-internal" {
  7. algorithm HMAC-MD5;
  8. secret "{{ salt['pillar.get']("model:dns:tsig:keys:internal") }}";
  9. };
  10. key "key-external" {
  11. algorithm HMAC-MD5;
  12. secret "{{ salt['pillar.get']("model:dns:tsig:keys:external") }}";
  13. };
  14. key "key-rndc" {
  15. algorithm HMAC-MD5;
  16. secret "{{ salt['pillar.get']("model:dns:tsig:keys:rndc") }}";
  17. };
  18. acl "acl-internal" {
  19. !key "key-external";
  20. key "key-internal";
  21. 192.168.0.0/16;
  22. 172.16.0.0/12;
  23. 10.0.0.0/8;
  24. localhost;
  25. };
  26. acl "acl-external" {
  27. !key "key-internal";
  28. key "key-external";
  29. any;
  30. };
  31. include "/etc/bind/config/masters.conf";
  32. options {
  33. directory "/var/cache/bind";
  34. dnssec-validation auto;
  35. auth-nxdomain no;
  36. listen-on-v6 {
  37. none;
  38. };
  39. masterfile-format text;
  40. notify explicit;
  41. };
  42. controls {
  43. inet 127.0.0.1 allow {
  44. localhost;
  45. } keys {
  46. "key-rndc";
  47. };
  48. };
  49. include "/etc/bind/named.conf.local";