named.conf 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ##
  2. ## @l_prefix@/etc/bind/named.conf -- BIND configuration
  3. ##
  4. controls {
  5. inet 127.0.0.1 port 953
  6. allow { 127.0.0.1; }
  7. keys { "rndc-key"; };
  8. };
  9. include "@l_prefix@/etc/bind/rndc.key";
  10. logging {
  11. channel logfile {
  12. file "@l_prefix@/var/bind/named.log";
  13. severity info;
  14. print-category yes;
  15. print-severity no;
  16. print-time yes;
  17. };
  18. category "default" { "logfile"; };
  19. category "general" { "logfile"; };
  20. category "security" { "logfile"; "default_syslog"; };
  21. };
  22. options {
  23. pid-file "@l_prefix@/var/bind/named.pid";
  24. directory "@l_prefix@/etc/bind/named.db";
  25. allow-query { any; };
  26. allow-transfer { any; };
  27. transfers-in 10;
  28. transfers-per-ns 2;
  29. max-transfer-time-in 120;
  30. transfer-format one-answer;
  31. cleaning-interval 60;
  32. interface-interval 60;
  33. #listen-on port 53 { 127.0.0.1; };
  34. #query-source address 127.0.0.1 port *;
  35. #transfer-source 127.0.0.1;
  36. #notify-source 127.0.0.1;
  37. };
  38. zone "." IN {
  39. type hint;
  40. file "db.root";
  41. };
  42. zone "localhost" IN {
  43. type master;
  44. file "db.localhost";
  45. notify no;
  46. allow-update { none; };
  47. allow-transfer { any; };
  48. };
  49. zone "0.0.127.in-addr.arpa" IN {
  50. type master;
  51. file "db.127.0.0";
  52. notify no;
  53. allow-update { none; };
  54. allow-transfer { any; };
  55. };