[vhffs-dev] [1636] Added support for zone transfer in bind-dlz conf

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1636
Author:   beuss
Date:     2010-10-27 19:41:49 +0200 (Wed, 27 Oct 2010)
Log Message:
-----------
Added support for zone transfer in bind-dlz conf

Modified Paths:
--------------
    trunk/vhffs-doc/config/bind/named.conf.vhffs

Modified: trunk/vhffs-doc/config/bind/named.conf.vhffs
===================================================================
--- trunk/vhffs-doc/config/bind/named.conf.vhffs	2010-10-26 21:44:51 UTC (rev 1635)
+++ trunk/vhffs-doc/config/bind/named.conf.vhffs	2010-10-27 17:41:49 UTC (rev 1636)
@@ -24,15 +24,16 @@
     union
     (select rr.ttl, rr.type, rr.data from vhffs_dns_rr rr inner join vhffs_dns dns on (dns.dns_id = rr.zone)
         where dns.domain = '%zone%' AND type = 'NS')}
-   {(select dns.ttl, 'SOA', dns.ns || ' ' || dns.mbox || ' ' || dns.serial || ' ' || dns.refresh ||
+   {(select dns.ttl, 'SOA', '%zone%' || '.' , dns.ns || ' ' || dns.mbox || ' ' || dns.serial || ' ' || dns.refresh ||
         ' ' || dns.retry || ' ' || dns.expire || ' ' ||  dns.minimum::text
         from vhffs_dns dns where domain = '%zone%')
     union
-    (select rr.ttl, rr.type, case
+    (select rr.ttl, rr.type, rr.name || case
+        when rr.name='' then '' else '.' end || '%zone%' || '.', case
      when rr.type='TXT' then E'\"' || replace(replace(rr.data, E'\\', E'\\\\'), E'\"', E'\\\"') || E'\"'
      when rr.type='MX' OR rr.type='SRV' then rr.aux || ' ' || rr.data
      else rr.data
      end from vhffs_dns_rr rr inner join vhffs_dns dns on (dns.dns_id = rr.zone)
         where dns.domain = '%zone%')}
-   {select zone from xfr_table where zone = '%zone%' and client = '%client%'}";
+   {select '%zone%' where '%client%' IN ('IPs', 'of', 'slaves')}";
 };


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/