named.conf 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. options {
  12. listen-on port 53 { any; };
  13. listen-on-v6 port 53 { ::1; };
  14. directory "/var/bind";
  15. dump-file "/var/bind/data/cache_dump.db";
  16. statistics-file "/var/bind/data/named_stats.txt";
  17. memstatistics-file "/var/bind/data/named_mem_stats.txt";
  18. allow-query { any; };
  19. /*
  20. - If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
  21. - If you are building a RECURSIVE (caching) DNS server, you need to enable
  22. recursion.
  23. - If your recursive DNS server has a public IP address, you MUST enable access
  24. control to limit queries to your legitimate users. Failing to do so will
  25. cause your server to become part of large scale DNS amplification
  26. attacks. Implementing BCP38 within your network would greatly
  27. reduce such attack surface
  28. */
  29. recursion yes;
  30. dnssec-enable yes;
  31. dnssec-validation yes;
  32. /* Path to ISC DLV key */
  33. bindkeys-file "/etc/bind/bind.keys";
  34. pid-file "/run/named/named.pid";
  35. session-keyfile "/run/named/session.key";
  36. };
  37. logging {
  38. channel default_debug {
  39. stderr;
  40. severity dynamic;
  41. };
  42. };
  43. zone "." IN {
  44. type hint;
  45. file "named.ca";
  46. };
  47. zone "infoclinica.lan" {
  48. type master;
  49. file "infoclinica/infoclinica.lan.zone";
  50. notify yes;
  51. allow-transfer { any; };
  52. };
  53. zone "201.168.192.in-addr.arpa" {
  54. type master;
  55. notify yes;
  56. file "infoclinica/201.168.192.in-addr.arpa.zone";
  57. allow-transfer { any; };
  58. };
  59. zone "204.168.192.in-addr.arpa" {
  60. type master;
  61. notify yes;
  62. file "infoclinica/204.168.192.in-addr.arpa.zone";
  63. allow-transfer { any; };
  64. };
  65. zone "205.168.192.in-addr.arpa" {
  66. type master;
  67. notify yes;
  68. file "infoclinica/205.168.192.in-addr.arpa.zone";
  69. allow-transfer { any; };
  70. };