From c407a97a6dce8095ab4aa800d0b1789921791aa6 Mon Sep 17 00:00:00 2001 From: thewhiteh4t Date: Thu, 24 Oct 2024 10:40:17 +0530 Subject: [PATCH] custom dns option fixed --- modules/dns.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/dns.py b/modules/dns.py index 14b35f4..5eafc2e 100644 --- a/modules/dns.py +++ b/modules/dns.py @@ -24,7 +24,9 @@ def dnsrec(domain, dns_servers, output, data): full_ans = [] res = dns.asyncresolver.Resolver(configure=False) - res.nameservers = dns_servers + res.nameservers = [sv.strip() for sv in dns_servers.split(',')] + print(res.nameservers) + async def fetch_records(res, domain, record):