Advertisement
luisg_muniz

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

Apr 2nd, 2016
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. --- /etc/named.conf 2010-07-19 15:34:15.000000000 +0200
  2. +++ /etc/named.conf.new 2016-04-03 05:33:08.816019010 +0200
  3. @@ -8,13 +8,19 @@
  4. //
  5.  
  6. options {
  7. - listen-on port 53 { 127.0.0.1; };
  8. + listen-on port 53 {
  9. + 127.0.0.1;
  10. + 192.0.2.@@@;
  11. + };
  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. + allow-query {
  19. + localhost;
  20. + 192.0.2.0/24;
  21. + };
  22. recursion yes;
  23.  
  24. dnssec-enable yes;
  25. @@ -39,6 +45,26 @@
  26. file "named.ca";
  27. };
  28.  
  29. +zone "example.com." IN {
  30. + type master;
  31. + file "db.example";
  32. +};
  33. +
  34. +zone "2.0.192.in-addr.arpa." IN {
  35. + type master;
  36. + file "db.192.0.2";
  37. +};
  38. +
  39. include "/etc/named.rfc1912.zones";
  40. include "/etc/named.root.key";
  41.  
  42. +# Primero,`rdnc-confgen -a'
  43. +include "/etc/rndc.key";
  44. +controls {
  45. + inet 127.0.0.1 allow {
  46. + localhost;
  47. + } keys {
  48. + "rndc-key";
  49. + };
  50. +};
  51. +
  52.  
  53. 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement