Named Config for Transparent Proxy


SUBMITTED BY: HaARiZz

DATE: Oct. 11, 2016, 7:59 a.m.

FORMAT: Text only

SIZE: 1.5 kB

HITS: 667

  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. acl mynet {
  10. 192.168.201.0/24; # test network
  11. 127.0.0.1; # localhost
  12. };
  13. options {
  14. listen-on {
  15. mynet;
  16. };
  17. listen-on-v6 port 53 { ::1; };
  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. allow-query { mynet; };
  23. recursion yes;
  24. forward only;
  25. forwarders {
  26. 8.8.8.8;
  27. };
  28. dnssec-enable yes;
  29. dnssec-validation yes;
  30. dnssec-lookaside auto;
  31. /* Path to ISC DLV key */
  32. bindkeys-file "/etc/named.iscdlv.key";
  33. managed-keys-directory "/var/named/dynamic";
  34. };
  35. logging {
  36. channel default_debug {
  37. file "data/named.run";
  38. severity dynamic;
  39. };
  40. };
  41. zone "." IN {
  42. type hint;
  43. file "named.ca";
  44. };
  45. include "/etc/named.rfc1912.zones";
  46. include "/etc/named.root.key";
  47. #############################################
  48. # home.lan
  49. #############################################
  50. zone "home.lan" IN {
  51. type master;
  52. file "/var/named/home.lan/db.home";
  53. allow-query {
  54. mynet;
  55. };
  56. };

comments powered by Disqus