From 23540072ab2efbc01326189515eb5497a1a2a497 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 11 Aug 2023 17:30:07 +1000 Subject: [PATCH] bot: dig using resolve --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 97edfbc..2275349 100644 --- a/bot.py +++ b/bot.py @@ -69,7 +69,7 @@ async def dig(ctx, domain: str, record_type: str = "A"): resolver.port = 5350 try: # Query the DNS record - response = resolver.query(domain, record_type) + response = resolver.resolve(domain, record_type) print(response) records = "" for record in response: