my $h = pop @hosts;
$config{$h}{'status'} = $status;
if ($status eq 'ok') {
if ($status eq 'ok' || $status eq 'nochange') {
$config{$h}{'ip'} = $ip;
$config{$h}{'mtime'} = $now;
success("updating %s: %s: IP address set to %s", $h, $status, $ip);