Skip to content

Commit

Permalink
Merge pull request #329 from yigitsever/timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
L1ghtn1ng authored Nov 5, 2024
2 parents 00462c3 + dea497d commit 6a2bc6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dnsrecon/lib/dnshelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def query(
self,
q,
where,
timeout=None,
timeout=DNS_QUERY_TIMEOUT,
port=53,
af=None,
source=None,
Expand Down Expand Up @@ -462,7 +462,7 @@ def zone_transfer(self):

logger.info(f'{ns_srv} Has port 53 TCP Open')
try:
zone = self.from_wire(dns.query.xfr(ns_srv, self._domain))
zone = self.from_wire(dns.query.xfr(ns_srv, self._domain, timeout=DNS_QUERY_TIMEOUT))
logger.info('Zone Transfer was successful!!')
zone_records.append({'type': 'info', 'zone_transfer': 'success', 'ns_server': ns_srv})

Expand Down

0 comments on commit 6a2bc6a

Please sign in to comment.