Advertisement
Guest User

ass

a guest
Feb 25th, 2020
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 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. // See the BIND Administrator's Reference Manual (ARM) for details about the
  10. // configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html
  11.  
  12. options {
  13. listen-on port 53 { 127.0.0.1; 10.0.2.15};
  14. listen-on-v6 port 53 { ::1; };
  15. directory "/var/named";
  16. dump-file "/var/named/data/cache_dump.db";
  17. statistics-file "/var/named/data/named_stats.txt";
  18. memstatistics-file "/var/named/data/named_mem_stats.txt";
  19. recursing-file "/var/named/data/named.recursing";
  20. secroots-file "/var/named/data/named.secroots";
  21. allow-query { localhost; 10.0.2.15/24;};
  22. allow-transfer { localhost; 10.0.2.15;};
  23.  
  24. /*
  25. - If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
  26. - If you are building a RECURSIVE (caching) DNS server, you need to enable
  27. recursion.
  28. - If your recursive DNS server has a public IP address, you MUST enable access
  29. control to limit queries to your legitimate users. Failing to do so will
  30. cause your server to become part of large scale DNS amplification
  31. attacks. Implementing BCP38 within your network would greatly
  32. reduce such attack surface
  33. */
  34. recursion yes;
  35.  
  36. dnssec-enable yes;
  37. dnssec-validation yes;
  38.  
  39. /* Path to ISC DLV key */
  40. bindkeys-file "/etc/named.root.key";
  41.  
  42. managed-keys-directory "/var/named/dynamic";
  43.  
  44. pid-file "/run/named/named.pid";
  45. session-keyfile "/run/named/session.key";
  46. };
  47.  
  48. logging {
  49. channel default_debug {
  50. file "data/named.run";
  51. severity dynamic;
  52. };
  53. };
  54.  
  55. zone "." IN {
  56. type hint;
  57. file "named.ca";
  58. };
  59.  
  60. zone "lamar.local" IN {
  61. type dns;
  62. file "named.localhost";
  63. allow-update { none; };
  64. };
  65. zone "1.168.192.in-addr-arpa" IN {
  66. type dns;
  67. file "named.localhost";
  68. allow-update { none; };
  69. };
  70.  
  71. include "/etc/named.rfc1912.zones";
  72. include "/etc/named.root.key";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement