bot: dig using resolve
All checks were successful
Build Docker / Build Docker (push) Successful in 21s

This commit is contained in:
Nathan Woodburn 2023-08-11 17:30:07 +10:00
parent c5ef0b6c8a
commit 23540072ab
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

2
bot.py
View File

@ -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: