Advertisement
luisg_muniz

OL6 :: DNS :: /etc/named.conf

Apr 2nd, 2016
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 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 {
  12. 127.0.0.1;
  13. 192.0.2.@@@;
  14. };
  15. listen-on-v6 port 53 { ::1; };
  16. directory "/var/named";
  17. dump-file "/var/named/data/cache_dump.db";
  18. statistics-file "/var/named/data/named_stats.txt";
  19. memstatistics-file "/var/named/data/named_mem_stats.txt";
  20. allow-query {
  21. localhost;
  22. 192.0.2.0/24;
  23. };
  24. recursion yes;
  25.  
  26. dnssec-enable yes;
  27. dnssec-validation yes;
  28. dnssec-lookaside auto;
  29.  
  30. /* Path to ISC DLV key */
  31. bindkeys-file "/etc/named.iscdlv.key";
  32.  
  33. managed-keys-directory "/var/named/dynamic";
  34. };
  35.  
  36. logging {
  37. channel default_debug {
  38. file "data/named.run";
  39. severity dynamic;
  40. };
  41. };
  42.  
  43. zone "." IN {
  44. type hint;
  45. file "named.ca";
  46. };
  47.  
  48. zone "example.com." IN {
  49. type master;
  50. file "db.example";
  51. };
  52.  
  53. zone "example.net." IN {
  54. type master;
  55. file "db.example";
  56. };
  57.  
  58. zone "2.0.192.in-addr.arpa." IN {
  59. type master;
  60. file "db.192.0.2";
  61. };
  62.  
  63. include "/etc/named.rfc1912.zones";
  64. include "/etc/named.root.key";
  65.  
  66. # Primero,`rdnc-confgen -a'
  67. include "/etc/rndc.key";
  68. controls {
  69. inet 127.0.0.1 allow {
  70. localhost;
  71. } keys {
  72. "rndc-key";
  73. };
  74. };
  75.  
  76.  
  77. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement