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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. logging {
  2. category default {
  3. default_stderr;
  4. };
  5. };
  6. key "key-internal" {
  7. algorithm HMAC-MD5;
  8. secret "DNS_TSIG_KEY_INTERNAL_SECRET";
  9. };
  10. key "key-external" {
  11. algorithm HMAC-MD5;
  12. secret "DNS_TSIG_KEY_EXTERNAL_SECRET";
  13. };
  14. key "key-rndc" {
  15. algorithm HMAC-MD5;
  16. secret "DNS_TSIG_KEY_RNDC_SECRET";
  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. masters "masters-example.com-internal" {
  32. 10.10.0.1 key "key-internal";
  33. };
  34. masters "masters-example.com-external" {
  35. 10.10.0.1 key "key-external";
  36. };
  37. options {
  38. directory "/var/cache/bind";
  39. dnssec-validation auto;
  40. auth-nxdomain no;
  41. listen-on-v6 {
  42. none;
  43. };
  44. masterfile-format text;
  45. notify explicit;
  46. };
  47. controls {
  48. inet 127.0.0.1 allow {
  49. localhost;
  50. } keys {
  51. "key-rndc";
  52. };
  53. };
  54. include "/etc/bind/named.conf.local";