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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user