Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

sfp_dnscommonsrv: Add a timeout to DNS queries.

smicallef204e74ecf872
diff --git a/modules/sfp_dnscommonsrv.py b/modules/sfp_dnscommonsrv.py
index 41d41a69..e00d4b07 100644
--- a/modules/sfp_dnscommonsrv.py
+++ b/modules/sfp_dnscommonsrv.py
@@ -124,7 +124,7 @@ class sfp_dnscommonsrv(SpiderFootPlugin):
continue
try:
- answers = res.query(name, 'SRV')
+ answers = res.query(name, 'SRV', timeout=10)
except Exception:
answers = []