Advertisement
Guest User

named.conf

a guest
Feb 28th, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. //
  2. // named.conf
  3. //
  4. // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
  5. // server as a caching only nameserver (as a localhost DNS resolver only).
  6. //
  7. // See /usr/share/doc/bind*/sample/ for example named configuration files.
  8. //
  9.  
  10. options {
  11. listen-on port 53 { 127.0.0.1; };
  12. listen-on-v6 port 53 { ::1; };
  13. directory "/var/named";
  14. dump-file "/var/named/data/cache_dump.db";
  15. statistics-file "/var/named/data/named_stats.txt";
  16. memstatistics-file "/var/named/data/named_mem_stats.txt";
  17. allow-query { localhost; };
  18.  
  19. /*
  20. - If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
  21. - If you are building a RECURSIVE (caching) DNS server, you need to enable
  22. recursion.
  23. - If your recursive DNS server has a public IP address, you MUST enable access
  24. control to limit queries to your legitimate users. Failing to do so will
  25. cause your server to become part of large scale DNS amplification
  26. attacks. Implementing BCP38 within your network would greatly
  27. reduce such attack surface
  28. */
  29. recursion yes;
  30.  
  31. dnssec-enable yes;
  32. dnssec-validation yes;
  33. dnssec-lookaside auto;
  34.  
  35. /* Path to ISC DLV key */
  36. bindkeys-file "/etc/named.iscdlv.key";
  37.  
  38. managed-keys-directory "/var/named/dynamic";
  39.  
  40. pid-file "/run/named/named.pid";
  41. session-keyfile "/run/named/session.key";
  42. };
  43. logging {
  44. channel default_debug {
  45. file "data/named.run";
  46. severity dynamic;
  47. };
  48. };
  49.  
  50. zone "smw.local" IN {
  51. type master;
  52. file "smw.local.zone";
  53. allow-update { none; };
  54. };
  55.  
  56. zone "1.168.192.in-addr.arpa" IN {
  57. type master;
  58. file "smw.local.rr.zone";
  59. allow-update { none; };
  60. };
  61.  
  62. zone "." IN {
  63. type hint;
  64. file "named.ca";
  65. };
  66.  
  67.  
  68.  
  69. include "/etc/named.rfc1912.zones";
  70. include "/etc/named.root.key";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement