45 log "Testing hosts..." |
45 log "Testing hosts..." |
46 for hosts in $(list_files etc/hosts); do |
46 for hosts in $(list_files etc/hosts); do |
47 log_warn "TODO: check_hosts $hosts" |
47 log_warn "TODO: check_hosts $hosts" |
48 done |
48 done |
49 |
49 |
50 log "Updating host zones..." |
50 log "Updating forward host zones..." |
51 for hosts in $(list_files etc/hosts); do |
51 for hosts in $(list_files etc/hosts); do |
52 update_hosts_forward var/zones/hosts/$hosts etc/hosts/$hosts |
52 update_hosts_forward var/zones/hosts/$hosts $hosts \ |
|
53 etc/hosts/$hosts |
53 done |
54 done |
54 |
55 |
55 log "Updating DHCP hosts..." |
56 log "Updating DHCP hosts..." |
56 for hosts in $(list_files etc/hosts); do |
57 for hosts in $(list_files etc/hosts); do |
57 update_hosts_dhcp var/dhcp/$hosts.conf etc/hosts/$hosts |
58 update_hosts_dhcp var/dhcp/$hosts.conf \ |
|
59 etc/hosts/$hosts |
58 done |
60 done |
|
61 |
|
62 log "Updating reverse host zones..." |
|
63 update_hosts_reverse var/zones/hosts/194.197.235 194.197.235.0/24 \ |
|
64 etc/hosts/paivola.fi etc/hosts/*.paivola.fi |
|
65 |
|
66 update_hosts_reverse var/zones/hosts/10.0 10.0.0.0/16 \ |
|
67 etc/hosts/test.pvl |
|
68 |
|
69 update_hosts_reverse var/zones/hosts/fdc4:4cef:395a fdc4:4cef:395a::/48 \ |
|
70 etc/hosts/test.pvl |
59 } |
71 } |
60 |
72 |
61 function run_zones { |
73 function run_zones { |
62 log "Copying zone includes..." |
74 log "Copying zone includes..." |
63 for zone in $(list_files etc/zones/includes); do |
75 for zone in $(list_files etc/zones/includes); do |