README.md
changeset 724 68abad09d54b
parent 646 585fe8171ac6
child 726 8790e1e28661
equal deleted inserted replaced
723:4644a67c329a 724:68abad09d54b
   236 
   236 
   237 ## Operation
   237 ## Operation
   238 
   238 
   239 Use the *update* script to generate a complete set of output zonefiles:
   239 Use the *update* script to generate a complete set of output zonefiles:
   240 
   240 
   241     $ ./bin/update
   241     $ ./bin/update -C
       
   242       var: apply dir
       
   243       var/dhcp: apply dir
       
   244       var/zones: apply dir
       
   245       var/include-cache: apply dir
       
   246       var/serials: apply dir
       
   247       var/dhcp/hosts: apply dir
       
   248       var/zones/includes: apply dir
       
   249       var/zones/forward: apply dir
       
   250       var/zones/reverse: apply dir
   242     Commit...
   251     Commit...
   243     Using commit timestamp: 1425049508
   252     Using commit timestamp: 1425379711
   244     Updating forward host zones...
   253     Updating forward host zones...
   245       var/zones/forward/test: Generating forward hosts zone: etc/zones/forward/test/
   254       var/zones/forward/test: Generating forward hosts zone: etc/zones/forward/test
   246     Updating reverse host zones...
   255     Updating reverse host zones...
   247       var/zones/reverse/192.0.2: Generating reverse hosts zone: etc/zones/reverse/192.0.2/
   256       var/zones/reverse/192.0.2: Generating reverse hosts zone: etc/zones/reverse/192.0.2
   248     Updating DHCP hosts...
   257     Updating DHCP hosts...
   249     Copying zone includes...
   258     Copying zone includes...
   250     Updating zones...
   259     Updating zones...
   251       var/serials/test: Update serial: 1425049508 <- 1425049508
   260       var/serials/test: Update serial:  <- 1425379711
   252       var/zones/test: Generate zone: etc/zones/test
   261       var/zones/test: Generate zone: etc/zones/test @ 1425379711
   253     Updating DHCP confs...
   262     Updating DHCP confs...
   254     Testing zones...
   263     Testing zones...
   255     Reload zones...
   264     Reload zones...
   256       Reload zones
   265       Reload zones
   257             rndc: server reload successful
   266      * Reloading domain name service... bind9 [ OK ] 
   258     Testing DHCP...
   267     Testing DHCP...
   259     Reload DHCP...
   268     Reload DHCP...
       
   269       Reload DHCP
       
   270     isc-dhcp-server stop/waiting
       
   271     isc-dhcp-server start/running, process 32581
       
   272 
       
   273 The update script tracks hostfile/zonefile dependencies, and only updates the necessary output files:
       
   274 
       
   275     $ touch etc/hosts/test.d/foo && ./bin/update -C
       
   276     Commit...
       
   277     Using commit timestamp: 1425379801
       
   278     Updating forward host zones...
       
   279       var/zones/forward/test: Generating forward hosts zone: etc/zones/forward/test
       
   280     Updating reverse host zones...
       
   281       var/zones/reverse/192.0.2: Generating reverse hosts zone: etc/zones/reverse/192.0.2
       
   282     Updating DHCP hosts...
       
   283     Copying zone includes...
       
   284     Updating zones...
       
   285       var/serials/test: Update serial: 1425379801 <- 1425379801
       
   286       var/zones/test: Generate zone: etc/zones/test @ 1425379801
       
   287     Updating DHCP confs...
       
   288     Testing zones...
       
   289     Reload zones...
       
   290       Reload zones
       
   291      * Reloading domain name service... bind9 ...done.
       
   292     Testing DHCP...
       
   293     Reload DHCP...
       
   294       Reload DHCP
       
   295     isc-dhcp-server stop/waiting
       
   296     isc-dhcp-server start/running, process 775
   260 
   297 
   261 ## Output zone files
   298 ## Output zone files
   262 
   299 
   263 The generated zone files can then be loaded by bind:
   300 The generated zone files can then be loaded by bind:
   264 
   301