Advertisement
howudodat

Untitled

May 15th, 2024
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1.  
  2.  
  3. administrator@nc1:/etc/bind$ cat named.conf
  4. include "/etc/bind/named.conf.options";
  5. include "/etc/bind/named.conf.local";
  6.  
  7. administrator@nc1:/etc/bind$ cat named.conf.options
  8. options {
  9. directory "/var/cache/bind";
  10. version "Go Away 0.0.7";
  11. notify no;
  12. empty-zones-enable no;
  13. auth-nxdomain yes;
  14. forwarders { 8.8.8.8; 8.8.4.4; };
  15. allow-transfer { none; };
  16.  
  17. dnssec-validation no;
  18.  
  19. listen-on-v6 { none; };
  20. listen-on port 53 { 192.168.10.11; 127.0.0.1; ::1; };
  21.  
  22. minimal-responses yes;
  23.  
  24. tkey-gssapi-keytab "/var/lib/samba/bind-dns/dns.keytab";
  25.  
  26. };
  27.  
  28. administrator@nc1:/etc/bind$ cat named.conf.local
  29. acl internals { 192.168.10.0/24; 192.168.11.0/24; localhost; };
  30. acl vpn { 10.9.0.0/24; };
  31.  
  32. view trusted {
  33. match-clients { internals; };
  34. allow-recursion { internals; };
  35. allow-query { "internals"; };
  36. allow-query-cache { "internals"; };
  37. recursion yes;
  38.  
  39. zone "MYDOMAIN.com" IN { type master; file "/etc/bind/db.MYDOMAIN.com"; allow-update { none; }; };
  40. zone "3cx.us" IN { type master; file "/etc/bind/db.3cx.us"; allow-update { none; }; };
  41.  
  42. zone "localhost" { type master; file "/etc/bind/db.local"; };
  43. zone "127.in-addr.arpa" { type master; file "/etc/bind/db.127"; };
  44. zone "0.in-addr.arpa" { type master; file "/etc/bind/db.0"; };
  45. zone "255.in-addr.arpa" { type master; file "/etc/bind/db.255"; };
  46. include "/var/lib/samba/bind-dns/named.conf";
  47. };
  48.  
  49. view vpn {
  50. match-clients { vpn; };
  51. allow-recursion { vpn; };
  52. allow-query { "vpn"; };
  53. allow-query-cache { "vpn"; };
  54. recursion yes;
  55.  
  56. zone "MYDOMAIN.com" IN { type master; file "/etc/bind/db.MYDOMAIN.com"; allow-update { none; }; };
  57. include "/var/lib/samba/bind-dns/named.conf";
  58. };
  59.  
  60.  
  61.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement