FreeBSD - настройка DNS с двумя зонами

Постановка задачи - требуется отдавать зону web.tv с томским ip для томских сетей, для всех остальных - зону web.tv с внешним ip.

Настройка на primary DNS

/etc/named.conf

 key ns1-ns2 {
      algorithm hmac-md5;
      secret "ключ";
 };
 
 server 83.172.0.170 {
         keys { ns1-ns2; };
 };
 
 server 62.64.24.82 {
      keys { ns1-ns2; };
 };
 
 options {
      directory       "/etc/namedb";
      pid-file        "/var/run/named/pid";
      dump-file       "/var/dump/named_dump.db";
      statistics-file "/var/stats/named.stats";
 
      listen-on       { 127.0.0.1; 62.64.24.18; };
 
 // These zones are already covered by the empty zones listed below.
 // If you remove the related empty zones below, comment these lines out.
      disable-empty-zone "255.255.255.255.IN-ADDR.ARPA";
      disable-empty-zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA";
      disable-empty-zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA";
 
      allow-query{ any; };
      allow-recursion{ 127.0.0.1; };
 //   allow-transfer { 83.172.0.170; };
      version "ns.roshoster.com-bind";
 
         forward first;
         forwarders {
              195.230.64.13;
              195.230.95.66;
      };
 
 };
 
 # -------------------------------------------------------------------------------
 acl "tomsk" {
      2.94.48.0/22;
      2.94.52.0/23;
      2.94.176.0/23;
      46.30.32.0/21;
      !62.64.24.82;
      62.64.24.0/24;
      62.68.128.0/19;
      77.106.64.0/18;
      77.235.211.192/29;
      77.245.160.0/20;
      78.136.192.0/18;
      78.139.192.0/18;
      78.140.0.0/18;
      79.122.222.0/23;
      79.136.128.0/17;
      79.175.39.0/25;
      80.72.208.0/20;
      80.89.133.32/27;
      80.89.135.0/24;
      81.1.229.72/29;
      81.1.229.96/27;
      81.1.229.128/25;
      81.1.232.0/24;
      82.117.64.0/19;
      82.117.160.0/19;
      82.200.4.0/24;
      82.200.5.0/27;
      82.200.17.0/24;
      82.200.24.0/26;
      82.200.70.0/23;
      82.200.73.0/24;
      82.200.74.0/24;
      82.200.75.0/24;
      82.200.76.0/24;
      82.200.77.0/24;
      82.200.112.0/24;
      82.200.114.0/27;
      82.200.114.160/27;
      82.200.122.0/24;
      82.200.123.0/24;
      83.172.0.0/18;
      84.237.0.0/20;
      88.204.0.0/17;
      90.188.64.0/19;
      90.188.96.0/20;
      90.188.112.0/21;
      90.189.192.29/32;
      91.193.88.0/23;
      91.210.72.0/22;
      91.210.184.0/23;
      91.210.187.0/24;
      91.211.184.0/24;
      91.211.185.0/24;
      91.211.186.0/24;
      91.211.187.0/24;
      91.211.236.0/22;
      91.216.211.0/24;
      91.217.110.0/23;
      92.50.240.0/24;
      92.63.64.0/20;
      92.125.0.0/19;
      92.126.224.0/19;
      92.243.96.0/19;
      93.91.165.0/24;
      93.91.166.0/24;
      93.91.168.0/23;
      94.28.4.0/23;
      94.251.92.0/24;
      95.29.1.0/24;
      95.29.38.0/24;
      95.31.212.0/24;
      95.170.96.0/19;
      95.170.136.0/22;
      95.170.140.0/22;
      95.170.144.0/23;
      95.170.146.0/24;
      95.170.156.0/23;
      95.174.192.0/19;
      95.191.0.0/18;
      95.191.130.3/32;
      95.191.130.4/32;
      95.191.130.5/32;
      109.123.128.0/18;
      109.124.0.0/18;
      109.202.12.0/22;
      109.227.192.0/18;
      178.213.72.0/21;
      188.65.16.0/21;
      193.106.132.0/22;
      194.226.60.0/22;
      195.211.196.0/22;
      212.73.124.0/22;
      212.107.224.0/20;
      212.107.240.0/21;
      212.192.102.0/24;
      212.192.112.0/20;
      212.192.163.0/24;
      213.183.96.0/19;
      213.210.64.0/18;
      213.228.87.5/32;
      217.8.224.80/28;
      217.8.237.112/28;
      217.18.128.0/19;
      217.29.80.0/20;
      217.70.106.24/32;
      217.70.106.29/32;
      217.70.119.194/32;
      217.79.56.0/24;
      217.106.147.0/28;
 };
 
 view "tomsk" {
      match-clients { "tomsk"; };
      // отдаём зону только 83.172.0.170
      allow-transfer { 83.172.0.170; };
      include "/etc/namedb/zones.txt";
 
      #master-config for 2web.tv
      zone "2web.tv" {
              type master;
              file "master/2web-tomsk.tv";
              allow-transfer { key ns1-ns2; };
      };
 };
 
 # -------------------------------------------------------------------------------
 
 
 # -------------------------------------------------------------------------------
 view "internet" {
      match-clients { "any"; };
      // отдаём зону только 62.64.24.82
      allow-transfer { 62.64.24.82; };
      include "/etc/namedb/zones.txt";
 
      #master-config for 2web.tv
      zone "2web.tv" {
              type master;
              file "master/2web-internet.tv";
              allow-transfer { key ns1-ns2; };
      };
 };
 # -------------------------------------------------------------------------------

/etc/namedb/zones.txt

 zone "." { type hint; file "/etc/namedb/named.root"; };
 
 // RFC 1912 (and BCP 32 for localhost)
 zone "localhost"     { type master; file "/etc/namedb/master/localhost-forward.db"; };
 zone "127.in-addr.arpa"      { type master; file "/etc/namedb/master/localhost-reverse.db"; };
 zone "255.in-addr.arpa"      { type master; file "/etc/namedb/master/empty.db"; };
 
 // RFC 1912-style zone for IPv6 localhost address
 zone "0.ip6.arpa"    { type master; file "/etc/namedb/master/localhost-reverse.db"; };
 
 // "This" Network (RFCs 1912 and 3330)
 zone "0.in-addr.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 
 // Private Use Networks (RFC 1918)
 zone "10.in-addr.arpa"          { type master; file "/etc/namedb/master/empty.db"; };
 zone "16.172.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "17.172.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "18.172.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "19.172.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "20.172.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "21.172.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "22.172.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "23.172.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "24.172.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "25.172.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "26.172.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "27.172.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "28.172.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "29.172.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "30.172.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "31.172.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "168.192.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 
 // Link-local/APIPA (RFCs 3330 and 3927)
 zone "254.169.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 
 // TEST-NET-[1-3] for Documentation (RFC 5737)
 zone "2.0.192.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "100.51.198.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "113.0.203.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 
 // IPv6 Range for Documentation (RFC 3849)
 zone "0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 
 // Domain Names for Documentation and Testing (BCP 32)
 zone "test" { type master; file "/etc/namedb/master/empty.db"; };
 zone "example" { type master; file "/etc/namedb/master/empty.db"; };
 zone "invalid" { type master; file "/etc/namedb/master/empty.db"; };
 zone "example.com" { type master; file "/etc/namedb/master/empty.db"; };
 zone "example.net" { type master; file "/etc/namedb/master/empty.db"; };
 zone "example.org" { type master; file "/etc/namedb/master/empty.db"; };
 
 // Router Benchmark Testing (RFC 3330)
 zone "18.198.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 zone "19.198.in-addr.arpa" { type master; file "/etc/namedb/master/empty.db"; };
 
 // IANA Reserved - Old Class E Space
 zone "240.in-addr.arpa"      { type master; file "/etc/namedb/master/empty.db"; };
 zone "241.in-addr.arpa"      { type master; file "/etc/namedb/master/empty.db"; };
 zone "242.in-addr.arpa"      { type master; file "/etc/namedb/master/empty.db"; };
 zone "243.in-addr.arpa"      { type master; file "/etc/namedb/master/empty.db"; };
 zone "244.in-addr.arpa"      { type master; file "/etc/namedb/master/empty.db"; };
 zone "245.in-addr.arpa"      { type master; file "/etc/namedb/master/empty.db"; };
 zone "246.in-addr.arpa"      { type master; file "/etc/namedb/master/empty.db"; };
 zone "247.in-addr.arpa"      { type master; file "/etc/namedb/master/empty.db"; };
 zone "248.in-addr.arpa"      { type master; file "/etc/namedb/master/empty.db"; };
 zone "249.in-addr.arpa"      { type master; file "/etc/namedb/master/empty.db"; };
 zone "250.in-addr.arpa"      { type master; file "/etc/namedb/master/empty.db"; };
 zone "251.in-addr.arpa"      { type master; file "/etc/namedb/master/empty.db"; };
 zone "252.in-addr.arpa"      { type master; file "/etc/namedb/master/empty.db"; };
 zone "253.in-addr.arpa"      { type master; file "/etc/namedb/master/empty.db"; };
 zone "254.in-addr.arpa"      { type master; file "/etc/namedb/master/empty.db"; };
 
 // IPv6 Unassigned Addresses (RFC 4291)
 zone "1.ip6.arpa"    { type master; file "/etc/namedb/master/empty.db"; };
 zone "3.ip6.arpa"    { type master; file "/etc/namedb/master/empty.db"; };
 zone "4.ip6.arpa"    { type master; file "/etc/namedb/master/empty.db"; };
 zone "5.ip6.arpa"    { type master; file "/etc/namedb/master/empty.db"; };
 zone "6.ip6.arpa"    { type master; file "/etc/namedb/master/empty.db"; };
 zone "7.ip6.arpa"    { type master; file "/etc/namedb/master/empty.db"; };
 zone "8.ip6.arpa"    { type master; file "/etc/namedb/master/empty.db"; };
 zone "9.ip6.arpa"    { type master; file "/etc/namedb/master/empty.db"; };
 zone "a.ip6.arpa"    { type master; file "/etc/namedb/master/empty.db"; };
 zone "b.ip6.arpa"    { type master; file "/etc/namedb/master/empty.db"; };
 zone "c.ip6.arpa"    { type master; file "/etc/namedb/master/empty.db"; };
 zone "d.ip6.arpa"    { type master; file "/etc/namedb/master/empty.db"; };
 zone "e.ip6.arpa"    { type master; file "/etc/namedb/master/empty.db"; };
 zone "0.f.ip6.arpa"  { type master; file "/etc/namedb/master/empty.db"; };
 zone "1.f.ip6.arpa"  { type master; file "/etc/namedb/master/empty.db"; };
 zone "2.f.ip6.arpa"  { type master; file "/etc/namedb/master/empty.db"; };
 zone "3.f.ip6.arpa"  { type master; file "/etc/namedb/master/empty.db"; };
 zone "4.f.ip6.arpa"  { type master; file "/etc/namedb/master/empty.db"; };
 zone "5.f.ip6.arpa"  { type master; file "/etc/namedb/master/empty.db"; };
 zone "6.f.ip6.arpa"  { type master; file "/etc/namedb/master/empty.db"; };
 zone "7.f.ip6.arpa"  { type master; file "/etc/namedb/master/empty.db"; };
 zone "8.f.ip6.arpa"  { type master; file "/etc/namedb/master/empty.db"; };
 zone "9.f.ip6.arpa"  { type master; file "/etc/namedb/master/empty.db"; };
 zone "a.f.ip6.arpa"  { type master; file "/etc/namedb/master/empty.db"; };
 zone "b.f.ip6.arpa"  { type master; file "/etc/namedb/master/empty.db"; };
 zone "0.e.f.ip6.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 zone "1.e.f.ip6.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 zone "2.e.f.ip6.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 zone "3.e.f.ip6.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 zone "4.e.f.ip6.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 zone "5.e.f.ip6.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 zone "6.e.f.ip6.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 zone "7.e.f.ip6.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 
 // IPv6 ULA (RFC 4193)
 zone "c.f.ip6.arpa"  { type master; file "/etc/namedb/master/empty.db"; };
 zone "d.f.ip6.arpa"  { type master; file "/etc/namedb/master/empty.db"; };
 
 // IPv6 Link Local (RFC 4291)
 zone "8.e.f.ip6.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 zone "9.e.f.ip6.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 zone "a.e.f.ip6.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 zone "b.e.f.ip6.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 
 // IPv6 Deprecated Site-Local Addresses (RFC 3879)
 zone "c.e.f.ip6.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 zone "d.e.f.ip6.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 zone "e.e.f.ip6.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 zone "f.e.f.ip6.arpa"        { type master; file "/etc/namedb/master/empty.db"; };
 
 // IP6.INT is Deprecated (RFC 4159)
 zone "ip6.int"               { type master; file "/etc/namedb/master/empty.db"; };
 

Настройка на secondary DNS

/etc/named.conf

 key ns1-ns2 {
      algorithm hmac-md5;
      secret "ключ";
 };
 
 server 62.64.24.18 {
      keys { ns1-ns2; };
 };
 
 options {
      directory       "/etc/namedb";
      pid-file        "/var/run/named/pid";
      dump-file       "/var/dump/named_dump.db";
      statistics-file "/var/stats/named.stats";
 
      listen-on       { 127.0.0.1; 83.172.0.170; 62.64.24.82; };
 
 // These zones are already covered by the empty zones listed below.
 // If you remove the related empty zones below, comment these lines out.
      disable-empty-zone "255.255.255.255.IN-ADDR.ARPA";
      disable-empty-zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA";
      disable-empty-zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA";
 
      allow-query{ any; };
      allow-recursion{ 127.0.0.1; };
      allow-transfer { none; };
      version "ns2.roshoster.com-bind";
 
      forward first;
      forwarders {
              195.230.64.13;
              195.230.95.66;
      };
 
 };
 
 # -------------------------------------------------------------------------------
 acl "tomsk" {
      2.94.48.0/22;
      2.94.52.0/23;
      2.94.176.0/23;
      46.30.32.0/21;
      !62.64.24.82;
      77.106.64.0/18;
      62.68.128.0/19;
      77.235.211.192/29;
      77.245.160.0/20;
      78.136.192.0/18;
      78.139.192.0/18;
      78.140.0.0/18;
      79.122.222.0/23;
      79.136.128.0/17;
      79.175.39.0/25;
      80.72.208.0/20;
      80.89.133.32/27;
      80.89.135.0/24;
      81.1.229.72/29;
      81.1.229.96/27;
      81.1.229.128/25;
      81.1.232.0/24;
      82.117.64.0/19;
      82.117.160.0/19;
      82.200.4.0/24;
      82.200.5.0/27;
      82.200.17.0/24;
      82.200.24.0/26;
      82.200.70.0/23;
      82.200.73.0/24;
      82.200.74.0/24;
      82.200.75.0/24;
      82.200.76.0/24;
      82.200.77.0/24;
      82.200.112.0/24;
      82.200.114.0/27;
      82.200.114.160/27;
      82.200.122.0/24;
      82.200.123.0/24;
      83.172.0.0/18;
      84.237.0.0/20;
      88.204.0.0/17;
      90.188.64.0/19;
      90.188.96.0/20;
      90.188.112.0/21;
      90.189.192.29/32;
      91.193.88.0/23;
      91.210.72.0/22;
      91.210.184.0/23;
      91.210.187.0/24;
      91.211.184.0/24;
      91.211.185.0/24;
      91.211.186.0/24;
      91.211.187.0/24;
      91.211.236.0/22;
      91.216.211.0/24;
      91.217.110.0/23;
      92.50.240.0/24;
      92.63.64.0/20;
      92.125.0.0/19;
      92.126.224.0/19;
      92.243.96.0/19;
      93.91.165.0/24;
      93.91.166.0/24;
      93.91.168.0/23;
      94.28.4.0/23;
      94.251.92.0/24;
      95.29.1.0/24;
      95.29.38.0/24;
      95.31.212.0/24;
      95.170.96.0/19;
      95.170.136.0/22;
      95.170.140.0/22;
      95.170.144.0/23;
      95.170.146.0/24;
      95.170.156.0/23;
      95.174.192.0/19;
      95.191.0.0/18;
      95.191.130.3/32;
      95.191.130.4/32;
      95.191.130.5/32;
      109.123.128.0/18;
      109.124.0.0/18;
      109.202.12.0/22;
      109.227.192.0/18;
      178.213.72.0/21;
      188.65.16.0/21;
      193.106.132.0/22;
      194.226.60.0/22;
      195.211.196.0/22;
      212.73.124.0/22;
      212.107.224.0/20;
      212.107.240.0/21;
      212.192.102.0/24;
      212.192.112.0/20;
      212.192.163.0/24;
      213.183.96.0/19;
      213.210.64.0/18;
      213.228.87.5/32;
      217.8.224.80/28;
      217.8.237.112/28;
      217.18.128.0/19;
      217.29.80.0/20;
      217.70.106.24/32;
      217.70.106.29/32;
      217.70.119.194/32;
      217.79.56.0/24;
      217.106.147.0/28;
 };
 
 # -------------------------------------------------------------------------------
 view "tomsk" {
      match-clients { "tomsk"; };
      // запрос зоны с 83.172.0.170
      query-source address 83.172.0.170 port 43303;
      transfer-source 83.172.0.170;
 
      include "/etc/namedb/zones.txt";
 
      # slave-config for 2web.tv
      zone "2web.tv" {
              type slave;
              file "slave/2web-tomsk.tv";
              masters { 62.64.24.18; };
      };
 };
 
 # -------------------------------------------------------------------------------
 
 # -------------------------------------------------------------------------------
 view "internet" {
      match-clients { "any"; };
      // запрос зоны с 62.64.24.82
      query-source address 62.64.24.82 port 43303;
      transfer-source 62.64.24.82;
 
      include "/etc/namedb/zones.txt";
 
      # slave-config for 2web.tv
      zone "2web.tv" {
              type slave;
              file "slave/2web-internet.tv";
              masters { 62.64.24.18; };
      };
 };
 # -------------------------------------------------------------------------------

/etc/namedb/zones.txt

 // The traditional root hints mechanism. Use this, OR the slave zones below.
 zone "." { type hint; file "named.root"; };
 
 /*   Serving the following zones locally will prevent any queries
      for these zones leaving your network and going to the root
      name servers.  This has two significant advantages:
      1. Faster local resolution for your users
      2. No spurious traffic will be sent from your network to the roots
 */
 // RFC 1912
 zone "localhost"     { type master; file "master/localhost-forward.db"; };
 zone "127.in-addr.arpa" { type master; file "master/localhost-reverse.db"; };
 zone "255.in-addr.arpa"      { type master; file "master/empty.db"; };
 
 // RFC 1912-style zone for IPv6 localhost address
 zone "0.ip6.arpa"    { type master; file "master/localhost-reverse.db"; };
 
 // "This" Network (RFCs 1912 and 3330)
 zone "0.in-addr.arpa"                { type master; file "master/empty.db"; };
 
 // Private Use Networks (RFC 1918)
 zone "10.in-addr.arpa"               { type master; file "master/empty.db"; };
 zone "16.172.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "17.172.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "18.172.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "19.172.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "20.172.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "21.172.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "22.172.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "23.172.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "24.172.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "25.172.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "26.172.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "27.172.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "28.172.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "29.172.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "30.172.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "31.172.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "168.192.in-addr.arpa"  { type master; file "master/empty.db"; };
 
 // Link-local/APIPA (RFCs 3330 and 3927)
 zone "254.169.in-addr.arpa"  { type master; file "master/empty.db"; };
 
 // TEST-NET for Documentation (RFC 3330)
 zone "2.0.192.in-addr.arpa"  { type master; file "master/empty.db"; };
 
 // Router Benchmark Testing (RFC 3330)
 zone "18.198.in-addr.arpa"   { type master; file "master/empty.db"; };
 zone "19.198.in-addr.arpa"   { type master; file "master/empty.db"; };
 
 // IANA Reserved - Old Class E Space
 zone "240.in-addr.arpa"              { type master; file "master/empty.db"; };
 zone "241.in-addr.arpa"              { type master; file "master/empty.db"; };
 zone "242.in-addr.arpa"              { type master; file "master/empty.db"; };
 zone "243.in-addr.arpa"              { type master; file "master/empty.db"; };
 zone "244.in-addr.arpa"              { type master; file "master/empty.db"; };
 zone "245.in-addr.arpa"              { type master; file "master/empty.db"; };
 zone "246.in-addr.arpa"              { type master; file "master/empty.db"; };
 zone "247.in-addr.arpa"              { type master; file "master/empty.db"; };
 zone "248.in-addr.arpa"              { type master; file "master/empty.db"; };
 zone "249.in-addr.arpa"              { type master; file "master/empty.db"; };
 zone "250.in-addr.arpa"              { type master; file "master/empty.db"; };
 zone "251.in-addr.arpa"              { type master; file "master/empty.db"; };
 zone "252.in-addr.arpa"              { type master; file "master/empty.db"; };
 zone "253.in-addr.arpa"              { type master; file "master/empty.db"; };
 zone "254.in-addr.arpa"              { type master; file "master/empty.db"; };
 
 // IPv6 Unassigned Addresses (RFC 4291)
 zone "1.ip6.arpa"            { type master; file "master/empty.db"; };
 zone "3.ip6.arpa"            { type master; file "master/empty.db"; };
 zone "4.ip6.arpa"            { type master; file "master/empty.db"; };
 zone "5.ip6.arpa"            { type master; file "master/empty.db"; };
 zone "6.ip6.arpa"            { type master; file "master/empty.db"; };
 zone "7.ip6.arpa"            { type master; file "master/empty.db"; };
 zone "8.ip6.arpa"            { type master; file "master/empty.db"; };
 zone "9.ip6.arpa"            { type master; file "master/empty.db"; };
 zone "a.ip6.arpa"            { type master; file "master/empty.db"; };
 zone "b.ip6.arpa"            { type master; file "master/empty.db"; };
 zone "c.ip6.arpa"            { type master; file "master/empty.db"; };
 zone "d.ip6.arpa"            { type master; file "master/empty.db"; };
 zone "e.ip6.arpa"            { type master; file "master/empty.db"; };
 zone "0.f.ip6.arpa"          { type master; file "master/empty.db"; };
 zone "1.f.ip6.arpa"          { type master; file "master/empty.db"; };
 zone "2.f.ip6.arpa"          { type master; file "master/empty.db"; };
 zone "3.f.ip6.arpa"          { type master; file "master/empty.db"; };
 zone "4.f.ip6.arpa"          { type master; file "master/empty.db"; };
 zone "5.f.ip6.arpa"          { type master; file "master/empty.db"; };
 zone "6.f.ip6.arpa"          { type master; file "master/empty.db"; };
 zone "7.f.ip6.arpa"          { type master; file "master/empty.db"; };
 zone "8.f.ip6.arpa"          { type master; file "master/empty.db"; };
 zone "9.f.ip6.arpa"          { type master; file "master/empty.db"; };
 zone "a.f.ip6.arpa"          { type master; file "master/empty.db"; };
 zone "b.f.ip6.arpa"          { type master; file "master/empty.db"; };
 zone "0.e.f.ip6.arpa"                { type master; file "master/empty.db"; };
 zone "1.e.f.ip6.arpa"                { type master; file "master/empty.db"; };
 zone "2.e.f.ip6.arpa"                { type master; file "master/empty.db"; };
 zone "3.e.f.ip6.arpa"                { type master; file "master/empty.db"; };
 zone "4.e.f.ip6.arpa"                { type master; file "master/empty.db"; };
 zone "5.e.f.ip6.arpa"                { type master; file "master/empty.db"; };
 zone "6.e.f.ip6.arpa"                { type master; file "master/empty.db"; };
 zone "7.e.f.ip6.arpa"                { type master; file "master/empty.db"; };
 
 // IPv6 ULA (RFC 4193)
 zone "c.f.ip6.arpa"          { type master; file "master/empty.db"; };
 zone "d.f.ip6.arpa"          { type master; file "master/empty.db"; };
 
 // IPv6 Link Local (RFC 4291)
 zone "8.e.f.ip6.arpa"                { type master; file "master/empty.db"; };
 zone "9.e.f.ip6.arpa"                { type master; file "master/empty.db"; };
 zone "a.e.f.ip6.arpa"                { type master; file "master/empty.db"; };
 zone "b.e.f.ip6.arpa"                { type master; file "master/empty.db"; };
 
 // IPv6 Deprecated Site-Local Addresses (RFC 3879)
 zone "c.e.f.ip6.arpa"                { type master; file "master/empty.db"; };
 zone "d.e.f.ip6.arpa"                { type master; file "master/empty.db"; };
 zone "e.e.f.ip6.arpa"                { type master; file "master/empty.db"; };
 zone "f.e.f.ip6.arpa"                { type master; file "master/empty.db"; };
 
 // IP6.INT is Deprecated (RFC 4159)
 zone "ip6.int"                       { type master; file "master/empty.db"; };
 

Ссылки

Комментарии

 
blog/2011/12/08-freebsd_-_настройка_dns_с_двумя_зонами.txt · Последние изменения: 2011/12/08 17:46 — Антон Бугреев · []