update: configure test.pvl zones
authorterom
Thu, 09 May 2013 23:39:02 +0300
changeset 79 87c5570a205f
parent 78 5a21b5238fa9
child 80 b58236f9ea7b
update: configure test.pvl zones
bin/update
--- a/bin/update	Tue Feb 19 15:20:40 2013 +0200
+++ b/bin/update	Thu May 09 23:39:02 2013 +0300
@@ -122,11 +122,13 @@
 
         
         update_hosts        $ZONES/hosts/10                 $DATA/pvl.txt       --reverse-zone 10 --reverse-domain pvl -q
+        update_hosts        $ZONES/hosts/10.0               $DATA/test.pvl.txt 	--reverse-zone 10.0 --reverse-domain test.pvl -q
         update_hosts        $ZONES/hosts/192.168            $DATA/pvl.txt       --reverse-zone 192.168 --reverse-domain pvl -q
 
         # XXX: unsupported --forward-zone with pvl.txt
         # update_hosts    $ZONES/hosts/pvl                    $DATA/pvl.txt      --forward-zone
         copy_hosts          $ZONES/hosts/pvl                $DATA/pvl.txt
+        copy_hosts          $ZONES/hosts/test.pvl           $DATA/test.pvl.txt
 }
 
 # Update $ZONES files
@@ -146,7 +148,10 @@
         #                   zone            deps...
         #   includes...
         update_serial       pvl             $ZONES/hosts/pvl            $DATA/pvl.zone
+        update_serial       test.pvl        $ZONES/hosts/test.pvl       $DATA/test.pvl.zone
         update_serial       10              $ZONES/hosts/10             $DATA/10.zone
+        update_serial       10.0            $ZONES/hosts/10.0           $DATA/10.0.zone
+        update_serial       fdc4:4cef:395a  $ZONES/hosts/fdc4:4cef:395a $DATA/fdc4:4cef:395a.zone
         update_serial       192.168         $ZONES/hosts/192.168        $DATA/192.168.zone
 
         update_serial       paivola         $ZONES/hosts/paivola:*      $DATA/paivola.zone          \
@@ -159,10 +164,11 @@
     log "Updating zones..."
         #                   view        zone            base
         update_zone         internal    pvl
-#        update_zone         internal    paivola
-#        update_zone         external    paivola
+        update_zone         internal    test.pvl
 
         update_zone         internal    10
+        update_zone         internal    10.0
+        update_zone         internal    fdc4:4cef:395a
         update_zone         internal    192.168
 
         update_zone         common      194.197.235
@@ -172,10 +178,10 @@
     ## Test
     log "Testing zones..."
         #                   view        zone            origin
-#        check_zone          internal    paivola         paivola.fi
-#        check_zone          external    paivola         paivola.fi
-
         check_zone          internal    10              10.in-addr.arpa
+        check_zone          internal    10.0            0.10.in-addr.arpa
+        check_zone          internal    fdc4:4cef:395a	a.5.9.3.f.e.c.4.4.c.d.f.ip6.arpa
+	
         check_zone          internal    192.168         192.168.in-addr.arpa
         check_zone          common      194.197.235     235.197.194.in-addr.arpa