string ip_host = IPAddrHelp->get_actual_ip(Conf->get_webcheck_enabled());
if ( ip_host.empty() )
{
- Log->print_no_wan_ip();
+ Log->print_no_wan_ip(changed_to_online);
return;
}
// Test if the DNS-Record could not be found.
if ( ip_dns_recheck.empty() )
+ {
+ Log->print_dns_lookup_failed(changed_to_online, hostname);
continue;
+ }
// Test if the actual DNS-Record differs from the host's IP.
if (ip_host == ip_dns_recheck )