Advertisement
ericroot

bind conf

Oct 14th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. options {
  2.  
  3. sortlist {
  4. { ynetg;
  5. { ynetg;
  6. { ynetw; }; };};
  7. { rnetg;
  8. { rnetg;
  9. { rnetw; }; };};
  10. { dnetg;
  11. { dnetg;
  12. { dnetw; }; };};
  13. { ynetw;
  14. { ynetw;
  15. { ynetg; }; };};
  16. { rnetw;
  17. { rnetw;
  18. { rnetg; }; };};
  19. { dnetw;
  20. { dnetw;
  21. { dnetg; }; };};
  22. { any;
  23. { anetw; };};
  24. };
  25.  
  26. version "unknown";
  27. directory "/zone";
  28. files 32768;
  29. lame-ttl 600;
  30. max-ncache-ttl 7200;
  31. max-cache-ttl 1209600;
  32. recursive-clients 20000;
  33. tcp-clients 1000;
  34. max-cache-size 0;
  35. acache-enable yes;
  36. max-acache-size 4G;
  37. acache-cleaning-interval 480;
  38. edns-udp-size 1400;
  39. max-udp-size 1400;
  40. /*
  41. * ALT Linux: this requires write permission to /session/
  42. */
  43. // session-keyfile "/session/session.key";
  44. pid-file "";
  45. dump-file "/var/run/named_dump.db";
  46. statistics-file "/var/run/named.stats";
  47. recursing-file "/var/run/recursing";
  48.  
  49. /*
  50. * Oftenly used directives are listed below.
  51. */
  52.  
  53. /*
  54. * For the localhost configuration, uncomment the listen-on directive
  55. * below.
  56. */
  57. //listen-on { 127.0.0.1; };
  58.  
  59. /*
  60. * If the forward directive is set to "only", the server will only
  61. * query the forwarders.
  62. */
  63. //forward only;
  64. //forwarders { };
  65. forward first;
  66. forwarders { IP авторитетного DNS; };
  67. /*
  68. * Specifies which hosts are allowed to ask ordinary questions.
  69. */
  70. allow-query { homenets; };
  71. allow-query-cache { homenets; };
  72.  
  73. /*
  74. * Specifies which hosts are allowed to make recursive queries
  75. * through this server. If not specified, the default is to allow
  76. * recursive queries from all hosts. Note that disallowing recursive
  77. * queries for a host does not prevent the host from retrieving data
  78. * that is already in the server's cache.
  79. */
  80. allow-recursion { homenets; };
  81.  
  82.  
  83. /*
  84. * Sets the maximum time for which the server will cache ordinary
  85. * (positive) answers. The default is one week (7 days).
  86. */
  87. //max-cache-ttl 86400;
  88.  
  89. /*
  90. * The server will scan the network interface list every
  91. * interface-interval minutes. The default is 60 minutes.
  92. * If set to 0, interface scanning will only occur when the
  93. * configuration file is loaded. After the scan, listeners will
  94. * be started on any new interfaces (provided they are allowed by
  95. * the listen-on configuration). Listeners on interfaces that
  96. * have gone away will be cleaned up.
  97. */
  98. //interface-interval 0;
  99. };
  100.  
  101. logging {
  102. /*
  103. * ALT Linux: if enabled, this fills log uselessly
  104. */
  105. category lame-servers {null;};
  106. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement