How to automatically search for an invalid hostname (NXDOMAIN / dns_unresolved_hostname)