From 1c85e7b3299651adfb12316a616723c06f148140 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 2 Sep 2020 10:38:38 +0200 Subject: [PATCH] increase default timeout duration --- respodns/dns.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/respodns/dns.py b/respodns/dns.py index 5447454..a5b4a06 100644 --- a/respodns/dns.py +++ b/respodns/dns.py @@ -35,6 +35,9 @@ async def getaddrs(server, domain, opts): if opts.impatient: res.timeout = 5 res.lifetime = 2 + else: + res.timeout = 3 + res.lifetime = 9 res.nameservers = [server] try: ans = await res.resolve(domain, "A", search=False)