Advertisement
samuelmf

named.conf

Aug 2nd, 2021
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 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.  
  13. options {
  14. listen-on port 53 { 127.0.0.1; };
  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. recursing-file "/var/named/data/named.recursing";
  21. secroots-file "/var/named/data/named.secroots";
  22. allow-query { localhost; };
  23. /*
  24. - If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
  25. - If you are building a RECURSIVE (caching) DNS server, you need to enable
  26. recursion.
  27. - If your recursive DNS server has a public IP address, you MUST enable access
  28. control to limit queries to your legitimate users. Failing to do so will
  29. cause your server to become part of large scale DNS amplification
  30. attacks. Implementing BCP38 within your network would greatly
  31. */
  32. recursion yes;
  33.  
  34. dnssec-enable yes;
  35. dnssec-validation yes;
  36. dnssec-lookaside auto;
  37.  
  38. /* Path to ISC DLV key */
  39. bindkeys-file "/etc/named.root.key";
  40.  
  41. managed-keys-directory "/var/named/dynamic";
  42.  
  43. pid-file "/run/named/named.pid";
  44. session-keyfile "/run/named/session.key";
  45. };
  46. logging {
  47. channel default_debug {
  48. file "data/named.run";
  49. severity dynamic;
  50. };
  51. };
  52.  
  53. zone "." IN {
  54. type hint;
  55. file "named.ca";
  56. };
  57. include "/etc/named.rfc1912.zones";
  58. include "/etc/named.root.key";
  59.  
  60. zone "scefrapcore.net" { type master; file "/var/named/scefrapcore.net.db"; };
  61. zone "core.scefrapcore.net" { type master; file "/var/named/core.scefrapcore.net.db"; };
  62. zone "scebackup.net" { type master; file "/var/named/scebackup.net.db"; };
  63. zone "82.32.95.184.in-addr.arpa" { type master; file "/var/named/82.32.95.184.in-addr.arpa.db"; };
  64.  
  65.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement