The .tilde TLD project's BIND9 conf files https://tildenic.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.0 KiB

3 years ago
3 years ago
  1. // This is a CentOS/RHEL specific file
  2. //
  3. // named.conf
  4. //
  5. // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
  6. // server as a caching only nameserver (as a localhost DNS resolver only).
  7. //
  8. // See /usr/share/doc/bind*/sample/ for example named configuration files.
  9. //
  10. // See the BIND Administrator's Reference Manual (ARM) for details about the
  11. // configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html
  12. options {
  13. listen-on port 53 { any; };
  14. listen-on-v6 port 53 { any; };
  15. query-source port *;
  16. use-v4-udp-ports { range 3000 8000; };
  17. use-v6-udp-ports { range 3000 8000; };
  18. directory "/var/named";
  19. dump-file "/var/named/data/cache_dump.db";
  20. statistics-file "/var/named/data/named_stats.txt";
  21. memstatistics-file "/var/named/data/named_mem_stats.txt";
  22. version "[hidden]";
  23. allow-query { any; };
  24. // forwarders {
  25. // 142.4.204.111;
  26. // 142.4.205.47;
  27. // };
  28. /*
  29. - If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
  30. - If you are building a RECURSIVE (caching) DNS server, you need to enable
  31. recursion.
  32. - If your recursive DNS server has a public IP address, you MUST enable access
  33. control to limit queries to your legitimate users. Failing to do so will
  34. cause your server to become part of large scale DNS amplification
  35. attacks. Implementing BCP38 within your network would greatly
  36. reduce such attack surface
  37. */
  38. recursion yes;
  39. dnssec-enable yes;
  40. dnssec-validation no;
  41. /* Path to ISC DLV key */
  42. bindkeys-file "/etc/named.iscdlv.key";
  43. managed-keys-directory "/var/named/dynamic";
  44. pid-file "/run/named/named.pid";
  45. session-keyfile "/run/named/session.key";
  46. };
  47. logging {
  48. channel default_debug {
  49. file "data/named.run";
  50. severity dynamic;
  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. include "/etc/bind/named.conf.local";
  60. include "/etc/bind/named.conf.opennic";
  61. include "/etc/bind/named.conf.team";