Advertisement
Guest User

Bind Config

a guest
Mar 22nd, 2023
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. acl "trusted" {
  2. "localhost";
  3. "localnets";
  4. 10.0.0.0/8;
  5. 172.16.0.0/12;
  6. 192.168.0.0/16;
  7. };
  8. logging {
  9. channel "rpz-queries" {
  10. file "/var/log/named/myrpz.log" versions 10 size 512000;
  11. severity info;
  12. };
  13. category "lame-servers" {
  14. "null";
  15. };
  16. category "rpz" {
  17. "rpz-queries";
  18. };
  19. };
  20. options {
  21. directory "/var/cache/bind";
  22. hostname none;
  23. listen-on {
  24. "any";
  25. };
  26. listen-on-v6 {
  27. "none";
  28. };
  29. recursive-clients 5000;
  30. server-id none;
  31. version none;
  32. allow-query-cache {
  33. "trusted";
  34. };
  35. allow-recursion {
  36. "trusted";
  37. };
  38. auth-nxdomain no;
  39. dnssec-validation no;
  40. query-source address 0.0.0.0 port 0;
  41. recursion yes;
  42. response-policy {
  43. zone "myrpz";
  44. };
  45. allow-query {
  46. "trusted";
  47. };
  48. allow-transfer {
  49. "none";
  50. };
  51. };
  52. zone "myrpz" {
  53. type master;
  54. file "/etc/bind/zones/db.myrpz";
  55. };
  56. zone "." {
  57. type hint;
  58. file "/usr/share/dns/root.hints";
  59. };
  60. zone "localhost" {
  61. type master;
  62. file "/etc/bind/db.local";
  63. };
  64. zone "127.in-addr.arpa" {
  65. type master;
  66. file "/etc/bind/db.127";
  67. };
  68. zone "0.in-addr.arpa" {
  69. type master;
  70. file "/etc/bind/db.0";
  71. };
  72. zone "255.in-addr.arpa" {
  73. type master;
  74. file "/etc/bind/db.255";
  75. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement