1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Also try system resolver for unqualified (no-dot) DNS names

This commit is contained in:
dmiller
2025-05-09 22:47:07 +00:00
parent 8fc566bf49
commit a7ca9aba7b

View File

@@ -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) {