diff --git a/nmap_dns.cc b/nmap_dns.cc index 3b63e783c..e3021d0bf 100644 --- a/nmap_dns.cc +++ b/nmap_dns.cc @@ -802,6 +802,11 @@ static void read_evt_handler(nsock_pool nsp, nsock_event evt, void *) { break; } } + if (!processing_successful && reqt->name.find('.') == std::string::npos) { + // Names without a dot: system resolver may do better. + process_request(ACTION_SYSTEM_RESOLVE, reqinfo); + processing_successful = true; + } } if (!processing_successful) {