Suppress DNS lookups for invalid hostnames