bot: dig using resolve
All checks were successful
Build Docker / Build Docker (push) Successful in 21s
All checks were successful
Build Docker / Build Docker (push) Successful in 21s
This commit is contained in:
parent
c5ef0b6c8a
commit
23540072ab
2
bot.py
2
bot.py
@ -69,7 +69,7 @@ async def dig(ctx, domain: str, record_type: str = "A"):
|
|||||||
resolver.port = 5350
|
resolver.port = 5350
|
||||||
try:
|
try:
|
||||||
# Query the DNS record
|
# Query the DNS record
|
||||||
response = resolver.query(domain, record_type)
|
response = resolver.resolve(domain, record_type)
|
||||||
print(response)
|
print(response)
|
||||||
records = ""
|
records = ""
|
||||||
for record in response:
|
for record in response:
|
||||||
|
Loading…
Reference in New Issue
Block a user