--- a/bin/update Tue Dec 17 00:26:44 2013 +0200
+++ b/bin/update Tue Dec 17 01:17:49 2013 +0200
@@ -47,15 +47,27 @@
log_warn "TODO: check_hosts $hosts"
done
- log "Updating host zones..."
+ log "Updating forward host zones..."
for hosts in $(list_files etc/hosts); do
- update_hosts_forward var/zones/hosts/$hosts etc/hosts/$hosts
+ update_hosts_forward var/zones/hosts/$hosts $hosts \
+ etc/hosts/$hosts
done
log "Updating DHCP hosts..."
for hosts in $(list_files etc/hosts); do
- update_hosts_dhcp var/dhcp/$hosts.conf etc/hosts/$hosts
+ update_hosts_dhcp var/dhcp/$hosts.conf \
+ etc/hosts/$hosts
done
+
+ log "Updating reverse host zones..."
+ update_hosts_reverse var/zones/hosts/194.197.235 194.197.235.0/24 \
+ etc/hosts/paivola.fi etc/hosts/*.paivola.fi
+
+ update_hosts_reverse var/zones/hosts/10.0 10.0.0.0/16 \
+ etc/hosts/test.pvl
+
+ update_hosts_reverse var/zones/hosts/fdc4:4cef:395a fdc4:4cef:395a::/48 \
+ etc/hosts/test.pvl
}
function run_zones {