Advertisement
sergio_educacionit

cache recursivo named.conf.options

Jul 18th, 2024
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. // ACL to define allowed networks
  2. acl "trusted" {
  3. 192.168.1.0/24; // Example local network
  4. 10.0.0.0/8; // Another example network
  5. localhost; // Localhost
  6. };
  7.  
  8. options {
  9.  
  10. directory "/var/cache/bind";
  11.  
  12.  
  13. // Allow queries only from trusted networks
  14. allow-query { trusted; };
  15.  
  16. // Allow recursion only from trusted networks
  17. allow-recursion { trusted; };
  18.  
  19. // Disable DNSSEC validation if not required
  20. dnssec-validation no;
  21.  
  22. // Listen on all interfaces
  23. listen-on { any; };
  24. listen-on-v6 { any; };
  25.  
  26. // Disable transfer of zones by default
  27. allow-transfer { none; };
  28. };
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement