# HG changeset patch # User Tero Marttila # Date 1425380117 -7200 # Node ID 68abad09d54bec950aad2be9364eb207483b590e # Parent 4644a67c329aaedff5b4b0728180ff1c9e14ae1a README: ./update examples diff -r 4644a67c329a -r 68abad09d54b README.md --- a/README.md Tue Mar 03 12:48:31 2015 +0200 +++ b/README.md Tue Mar 03 12:55:17 2015 +0200 @@ -238,25 +238,62 @@ Use the *update* script to generate a complete set of output zonefiles: - $ ./bin/update + $ ./bin/update -C + var: apply dir + var/dhcp: apply dir + var/zones: apply dir + var/include-cache: apply dir + var/serials: apply dir + var/dhcp/hosts: apply dir + var/zones/includes: apply dir + var/zones/forward: apply dir + var/zones/reverse: apply dir Commit... - Using commit timestamp: 1425049508 + Using commit timestamp: 1425379711 Updating forward host zones... - var/zones/forward/test: Generating forward hosts zone: etc/zones/forward/test/ + var/zones/forward/test: Generating forward hosts zone: etc/zones/forward/test Updating reverse host zones... - var/zones/reverse/192.0.2: Generating reverse hosts zone: etc/zones/reverse/192.0.2/ + var/zones/reverse/192.0.2: Generating reverse hosts zone: etc/zones/reverse/192.0.2 Updating DHCP hosts... Copying zone includes... Updating zones... - var/serials/test: Update serial: 1425049508 <- 1425049508 - var/zones/test: Generate zone: etc/zones/test + var/serials/test: Update serial: <- 1425379711 + var/zones/test: Generate zone: etc/zones/test @ 1425379711 Updating DHCP confs... Testing zones... Reload zones... Reload zones - rndc: server reload successful + * Reloading domain name service... bind9 [ OK ] Testing DHCP... Reload DHCP... + Reload DHCP + isc-dhcp-server stop/waiting + isc-dhcp-server start/running, process 32581 + +The update script tracks hostfile/zonefile dependencies, and only updates the necessary output files: + + $ touch etc/hosts/test.d/foo && ./bin/update -C + Commit... + Using commit timestamp: 1425379801 + Updating forward host zones... + var/zones/forward/test: Generating forward hosts zone: etc/zones/forward/test + Updating reverse host zones... + var/zones/reverse/192.0.2: Generating reverse hosts zone: etc/zones/reverse/192.0.2 + Updating DHCP hosts... + Copying zone includes... + Updating zones... + var/serials/test: Update serial: 1425379801 <- 1425379801 + var/zones/test: Generate zone: etc/zones/test @ 1425379801 + Updating DHCP confs... + Testing zones... + Reload zones... + Reload zones + * Reloading domain name service... bind9 ...done. + Testing DHCP... + Reload DHCP... + Reload DHCP + isc-dhcp-server stop/waiting + isc-dhcp-server start/running, process 775 ## Output zone files