Advertisement
Guest User

Untitled

a guest
Apr 17th, 2012
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.34 KB | None | 0 0
  1. #MASTER
  2.  
  3.  
  4.  
  5. $ORIGIN domain.ru.
  6. $TTL 900;
  7. domain.ru. IN SOA ns1.myserver.ru. root.domain.ru. 1334406963 28800 7200 1209600 600
  8. @ IN NS ns1.myserver.ru.
  9. @ IN NS ns2.myserver.ru.
  10. @ IN A 1.2.3.4
  11. www IN CNAME domain.ru.
  12.  
  13.  
  14.  
  15. acl "net_params" { 1.2.3.4; 127.0.0.1; };
  16. acl "slave_ns_list" { 11.22.33.44; };
  17.  
  18. options {
  19.         directory "/etc/bind";
  20.  
  21.         listen-on { net_params; };
  22.         allow-query { any; };
  23. #       allow-query-cache { any; };
  24.         allow-recursion { 127.0.0.1; };
  25.         allow-notify { none; };
  26.  
  27. #       allow-transfer { slave_ns_list; };
  28.         notify YES;
  29.  
  30.         version "unknown";
  31.  
  32.         auth-nxdomain no;
  33.         listen-on-v6 { none; };
  34. };
  35.  
  36.  
  37.  
  38. zone "domain.ru" {type master;file "domain.ru";allow-transfer {slave_ns_list;};};
  39.  
  40.  
  41.  
  42. #SLAVE
  43.  
  44.  
  45.  
  46. acl "net_params" { 11.22.33.44; 127.0.0.1; };
  47. acl "master_ns" { 1.2.3.4; };
  48.  
  49. options {
  50.         directory "/etc/bind";
  51.  
  52.         listen-on { net_params; };
  53.         allow-query { any; };
  54.         allow-query-cache { any; };
  55.         allow-recursion { 127.0.0.1; };
  56.         allow-notify { master_ns; };
  57.  
  58.         allow-transfer { none; };
  59.         notify NO;
  60.  
  61.         version "unknown";
  62.  
  63.         auth-nxdomain NO;
  64.         listen-on-v6 { none; };
  65. };
  66.  
  67.  
  68.  
  69.  
  70. zone "domain.ru" {type slave;file "domain.ru";masters {1.2.3.4;};allow-notify {1.2.3.4;};};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement