bin/update
changeset 79 87c5570a205f
parent 77 b0c0e3e80c39
child 80 b58236f9ea7b
equal deleted inserted replaced
78:5a21b5238fa9 79:87c5570a205f
   120         update_hosts        $ZONES/hosts/paivola:external   $DATA/paivola.txt   --forward-zone
   120         update_hosts        $ZONES/hosts/paivola:external   $DATA/paivola.txt   --forward-zone
   121         update_hosts        $ZONES/hosts/194.197.235        $DATA/paivola.txt   --reverse-zone $REVERSE_ZONE --reverse-domain $REVERSE_DOMAIN
   121         update_hosts        $ZONES/hosts/194.197.235        $DATA/paivola.txt   --reverse-zone $REVERSE_ZONE --reverse-domain $REVERSE_DOMAIN
   122 
   122 
   123         
   123         
   124         update_hosts        $ZONES/hosts/10                 $DATA/pvl.txt       --reverse-zone 10 --reverse-domain pvl -q
   124         update_hosts        $ZONES/hosts/10                 $DATA/pvl.txt       --reverse-zone 10 --reverse-domain pvl -q
       
   125         update_hosts        $ZONES/hosts/10.0               $DATA/test.pvl.txt 	--reverse-zone 10.0 --reverse-domain test.pvl -q
   125         update_hosts        $ZONES/hosts/192.168            $DATA/pvl.txt       --reverse-zone 192.168 --reverse-domain pvl -q
   126         update_hosts        $ZONES/hosts/192.168            $DATA/pvl.txt       --reverse-zone 192.168 --reverse-domain pvl -q
   126 
   127 
   127         # XXX: unsupported --forward-zone with pvl.txt
   128         # XXX: unsupported --forward-zone with pvl.txt
   128         # update_hosts    $ZONES/hosts/pvl                    $DATA/pvl.txt      --forward-zone
   129         # update_hosts    $ZONES/hosts/pvl                    $DATA/pvl.txt      --forward-zone
   129         copy_hosts          $ZONES/hosts/pvl                $DATA/pvl.txt
   130         copy_hosts          $ZONES/hosts/pvl                $DATA/pvl.txt
       
   131         copy_hosts          $ZONES/hosts/test.pvl           $DATA/test.pvl.txt
   130 }
   132 }
   131 
   133 
   132 # Update $ZONES files
   134 # Update $ZONES files
   133 function run_zones {
   135 function run_zones {
   134     ## Includes
   136     ## Includes
   144     log "Updating serials..."
   146     log "Updating serials..."
   145 
   147 
   146         #                   zone            deps...
   148         #                   zone            deps...
   147         #   includes...
   149         #   includes...
   148         update_serial       pvl             $ZONES/hosts/pvl            $DATA/pvl.zone
   150         update_serial       pvl             $ZONES/hosts/pvl            $DATA/pvl.zone
       
   151         update_serial       test.pvl        $ZONES/hosts/test.pvl       $DATA/test.pvl.zone
   149         update_serial       10              $ZONES/hosts/10             $DATA/10.zone
   152         update_serial       10              $ZONES/hosts/10             $DATA/10.zone
       
   153         update_serial       10.0            $ZONES/hosts/10.0           $DATA/10.0.zone
       
   154         update_serial       fdc4:4cef:395a  $ZONES/hosts/fdc4:4cef:395a $DATA/fdc4:4cef:395a.zone
   150         update_serial       192.168         $ZONES/hosts/192.168        $DATA/192.168.zone
   155         update_serial       192.168         $ZONES/hosts/192.168        $DATA/192.168.zone
   151 
   156 
   152         update_serial       paivola         $ZONES/hosts/paivola:*      $DATA/paivola.zone          \
   157         update_serial       paivola         $ZONES/hosts/paivola:*      $DATA/paivola.zone          \
   153             $ZONES/includes/paivola:*       \
   158             $ZONES/includes/paivola:*       \
   154             $ZONES/includes/paivola.*
   159             $ZONES/includes/paivola.*
   157 
   162 
   158     ## Zones
   163     ## Zones
   159     log "Updating zones..."
   164     log "Updating zones..."
   160         #                   view        zone            base
   165         #                   view        zone            base
   161         update_zone         internal    pvl
   166         update_zone         internal    pvl
   162 #        update_zone         internal    paivola
   167         update_zone         internal    test.pvl
   163 #        update_zone         external    paivola
       
   164 
   168 
   165         update_zone         internal    10
   169         update_zone         internal    10
       
   170         update_zone         internal    10.0
       
   171         update_zone         internal    fdc4:4cef:395a
   166         update_zone         internal    192.168
   172         update_zone         internal    192.168
   167 
   173 
   168         update_zone         common      194.197.235
   174         update_zone         common      194.197.235
   169         link_zone           internal    194.197.235
   175         link_zone           internal    194.197.235
   170         link_zone           external    194.197.235
   176         link_zone           external    194.197.235
   171 
   177 
   172     ## Test
   178     ## Test
   173     log "Testing zones..."
   179     log "Testing zones..."
   174         #                   view        zone            origin
   180         #                   view        zone            origin
   175 #        check_zone          internal    paivola         paivola.fi
       
   176 #        check_zone          external    paivola         paivola.fi
       
   177 
       
   178         check_zone          internal    10              10.in-addr.arpa
   181         check_zone          internal    10              10.in-addr.arpa
       
   182         check_zone          internal    10.0            0.10.in-addr.arpa
       
   183         check_zone          internal    fdc4:4cef:395a	a.5.9.3.f.e.c.4.4.c.d.f.ip6.arpa
       
   184 	
   179         check_zone          internal    192.168         192.168.in-addr.arpa
   185         check_zone          internal    192.168         192.168.in-addr.arpa
   180         check_zone          common      194.197.235     235.197.194.in-addr.arpa
   186         check_zone          common      194.197.235     235.197.194.in-addr.arpa
   181 
   187 
   182     ## Domains...
   188     ## Domains...
   183     log "Linking domains..."
   189     log "Linking domains..."