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)