From 94c411888cd94680314d94e63fe8c1d54c814049 Mon Sep 17 00:00:00 2001 From: liquidsec Date: Tue, 7 May 2024 16:50:41 -0400 Subject: [PATCH] better error handling dnsmanager --- baddns/lib/dnsmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/baddns/lib/dnsmanager.py b/baddns/lib/dnsmanager.py index 3fba371..6ddb31f 100644 --- a/baddns/lib/dnsmanager.py +++ b/baddns/lib/dnsmanager.py @@ -120,7 +120,7 @@ async def do_resolve(self, target, rdatatype): r = self.process_answer(await self.dns_client.resolve(target, "CNAME"), "CNAME") if len(r) == 0: break - except (dns.resolver.NoAnswer, dns.resolver.NXDOMAIN) as e: + except (dns.resolver.NoAnswer, dns.resolver.NXDOMAIN, dns.resolver.NoNameservers) as e: log.debug(f"Error resolving cname chain: {e}") break return cname_chain