fixed DOH Problem
This commit is contained in:
@@ -38,12 +38,11 @@ def get_ip(address):
|
||||
|
||||
def doh(query,server):
|
||||
server = "https://"+ server +"/dns-query"
|
||||
with httpx.Client() as client:
|
||||
try:
|
||||
r = dns.query.https(query, server, session=client)
|
||||
return r.answer
|
||||
except httpx.ConnectError as e:
|
||||
print(e)
|
||||
try:
|
||||
r = dns.query.https(query, server)
|
||||
return r.answer
|
||||
except httpx.ConnectError as e:
|
||||
print(e)
|
||||
|
||||
def doq(query,server):
|
||||
async def amulti(query):
|
||||
|
||||
Reference in New Issue
Block a user