fix: Update to use better sending api

This commit is contained in:
2023-12-28 16:32:20 +11:00
parent c0b407a6a2
commit 713b33d05f
7 changed files with 25 additions and 27 deletions

View File

@@ -7,7 +7,7 @@ import binascii
import datetime
import dns.asyncresolver
import httpx
from requests_doh import DNSOverHTTPSSession, add_dns_provider, remove_dns_provider
from requests_doh import DNSOverHTTPSSession, add_dns_provider
def hip2(domain: str):
@@ -114,7 +114,7 @@ def hip2(domain: str):
# Catch all exceptions
except Exception as e:
return "Hip2: " + str(e)
return "Hip2: Lookup failed."
def resolve_with_doh(query_name, doh_url="https://hnsdoh.com/dns-query"):