fix: Update DNS server for other functions
All checks were successful
Build Docker / Build Docker (push) Successful in 18s

This commit is contained in:
Nathan Woodburn 2023-11-08 18:12:16 +11:00
parent 830e6671af
commit 94362f4a67
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

4
bot.py
View File

@ -73,7 +73,7 @@ async def botstatus(ctx, message: str, statusmethod: str = None):
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.nameservers = ["10.2.1.15"]
resolver.port = 5350
try:
# Query the DNS record
@ -147,7 +147,7 @@ async def ssl(ctx, domain: str, showcert: bool = False, notifymeonexpiry: bool =
await ctx.response.send_message(f"Checking SSL certificate for {domain}...")
message = ""
resolver = dns.resolver.Resolver()
resolver.nameservers = ["100.74.29.146"]
resolver.nameservers = ["10.2.1.15"]
resolver.port = 5350
domain_check = False
try: