Skip to content

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

Timeout DNS queries.

Steve15296baeabbb
diff --git a/modules/sfp_dns.py b/modules/sfp_dns.py
index 0d446925..938f40bc 100644
--- a/modules/sfp_dns.py
+++ b/modules/sfp_dns.py
@@ -456,7 +456,7 @@ class sfp_dns(SpiderFootPlugin):
ns = dns.resolver.get_default_resolver()
n = ns.nameservers[0]
- res = dns.query.udp(req, n)
+ res = dns.query.udp(req, n, timeout=30)
for x in res.answer:
for rx in recs.keys():
self.sf.debug("Checking " + str(x) + " + against " + recs[rx][0])