From be6f6c14f9845f7b830be41a9609f3243589e704 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sat, 2 Sep 2023 14:58:31 +1000 Subject: [PATCH] bot: Updated dig location --- bot.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 8bf96bb..ce9d064 100644 --- a/bot.py +++ b/bot.py @@ -63,11 +63,9 @@ async def botstatus(ctx, message: str, statusmethod: str = None): @tree.command(name="dig", description="Dig a dns record") async def dig(ctx, domain: str, record_type: str = "A"): record_type = record_type.upper() - - # Format dig @100.74.29.146 -p 5350 resolver = dns.resolver.Resolver() resolver.nameservers = ["100.74.29.146"] - resolver.port = 5350 + resolver.port = 53 try: # Query the DNS record response = resolver.resolve(domain, record_type)