Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 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.  
  10. acl "clients"{
  11. 192.168.100.0/24;
  12. 127.0.0.1;
  13. };
  14.  
  15. options {
  16. listen-on port 53 { any; };
  17. listen-on-v6 port 53 { any; };
  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. secroots-file "/var/named/data/named.secroots";
  23. recursing-file "/var/named/data/named.recursing";
  24. allow-query { clients; };
  25. auth-nxdomain no;
  26. /*
  27. - If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
  28. - If you are building a RECURSIVE (caching) DNS server, you need to enable
  29. recursion.
  30. - If your recursive DNS server has a public IP address, you MUST enable access
  31. control to limit queries to your legitimate users. Failing to do so will
  32. cause your server to become part of large scale DNS amplification
  33. attacks. Implementing BCP38 within your network would greatly
  34. reduce such attack surface
  35. */
  36. recursion yes;
  37.  
  38. dnssec-enable yes;
  39. dnssec-validation yes;
  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. /* https://fedoraproject.org/wiki/Changes/CryptoPolicy */
  47. include "/etc/crypto-policies/back-ends/bind.config";
  48. };
  49.  
  50. zone "domlab.studmat.uni.torun.pl"{
  51. type master;
  52. file "/etc/primary/domlab.studmat.uni.torun.pl";
  53. allow-transfer {
  54. 158.75.12.130;
  55. 192.168.132.31;
  56. };
  57. };
  58.  
  59. zone "119.1.168.192.in-addr.arpa"{
  60. type master;
  61. file "/etc/primary/db.192";
  62. };
  63.  
  64. logging {
  65. channel default_debug {
  66. file "data/named.run";
  67. severity dynamic;
  68. };
  69. };
  70.  
  71. zone "." IN {
  72. type hint;
  73. file "named.ca";
  74. };
  75.  
  76. include "/etc/named.rfc1912.zones";
  77. include "/etc/named.root.key";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement