From 686a5359ba34204dd77ba7e3e2f5df14d6169bcd Mon Sep 17 00:00:00 2001
From: LoH-lu <139378145+LoH-lu@users.noreply.github.com>
Date: Fri, 27 Dec 2024 10:52:56 +0100
Subject: [PATCH] Update nmap_scan_multi_dns.py

nmap scan is now a little bit more aggressive, and timeout faster than default.
---
 nmap_scan_multi_dns.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nmap_scan_multi_dns.py b/nmap_scan_multi_dns.py
index 2adf09c..535cd7e 100644
--- a/nmap_scan_multi_dns.py
+++ b/nmap_scan_multi_dns.py
@@ -67,7 +67,7 @@ def run_nmap_on_prefix(prefix, tenant, vrf):
     """
     logger.info(f"Starting scan on prefix: {prefix}")
     # Run nmap on the prefix with DNS resolution and specified DNS servers
-    command = f"nmap -sn -R -T3 --min-parallelism 10 {prefix}"
+    command = f"nmap -sn -T4 --min-parallelism 10 --max-retries 2 -R {prefix}"
     process = subprocess.Popen(command.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     output, error = process.communicate()