diff --git a/bot.py b/bot.py index 641f15d..22ba258 100644 --- a/bot.py +++ b/bot.py @@ -74,7 +74,7 @@ async def dig(ctx, domain: str, record_type: str = "A"): record_type = record_type.upper() resolver = dns.resolver.Resolver() resolver.nameservers = ["100.74.29.146"] - resolver.port = 53 + resolver.port = 5350 try: # Query the DNS record response = resolver.resolve(domain, record_type) @@ -148,7 +148,7 @@ async def ssl(ctx, domain: str, showcert: bool = False, notifymeonexpiry: bool = message = "" resolver = dns.resolver.Resolver() resolver.nameservers = ["100.74.29.146"] - resolver.port = 53 + resolver.port = 5350 domain_check = False try: # Query the DNS record @@ -327,8 +327,8 @@ async def checkForSSLExpiry(): userid, domain = line.split(",") print(f"Checking SSL certificate for {domain}...", flush=True) resolver = dns.resolver.Resolver() - resolver.nameservers = ["100.74.29.146"] - resolver.port = 53 + resolver.nameservers = ["10.2.1.15"] + resolver.port = 5350 try: # Query the DNS record response = resolver.resolve(domain, "A")