Releases: mansuf/requests-doh
v1.0.0
Breaking changes
Now function requests_doh.resolver.set_resolver_session
only accept httpx.Client
rather than requests.Client
.
This is because dnspython changes makes it no longer accepting requests.Client
And requests_doh.resolver.get_resolver_session
are now returning httpx.Client
rather than requests.Client
If you're already installed request-doh and wanna update requests-doh to v1.0.0. You need to update dnspython and requests as well.
pip install -U "dnspython[doh]==2.6.1" "requests[socks]==2.32.3"
Dependencies
- Bump requests from v2.31.0 to v2.32.3 due to CVE-2024-35195
- Bump dnspython from v2.3.0 to v2.6.1 due to CVE-2023-29483
v0.3.3
v0.3.2
Fix bugs
- Fixed requests with socks proxy is not working #3
Note: Potential breaking changes
Functions set_dns_cache_expire_time()
and purge_dns_cache()
imported from module requests_doh.connector
are no longer exists. Instead you can import it from requests_doh.cachemanager
If you usually import those functions from requests_doh
(root library), these changes doesn't affect you at all.
For example:
# If you do this starting from v0.3.2, you will get `ImportError`
from requests_doh.connector import set_dns_cache_expire_time, purge_dns_cache
# Do this instead
from requests_doh.cachemanager import set_dns_cache_expire_time, purge_dns_cache
# Those changes doesn't affect you if you use this import method
from requests_doh import set_dns_cache_expire_time, purge_dns_cache
v0.3.1
This update fix requests
dependencies because of CVE-202-32681
Dependencies
- Bump requests from v2.28.2 to v2.31.0
v0.3.0
v0.2.4
v0.2.3
v0.2.2
Improvements
- Improved DoH resolving
Note
This version have an issue where error 'dns.query.NoDOH: Neither httpx nor requests is available.' when making request, this is happen because of some dependecies is missing in requirements.txt
, i know it's my fault and i'm sorry. This issue was fixed in version 0.2.3
v0.2.1
Fix bugs
- Fixed unhandled exception if host doesn't contain AAAA type
Note
This version have an issue where error 'dns.query.NoDOH: Neither httpx nor requests is available.' when making request, this is happen because of some dependecies is missing in requirements.txt
, i know it's my fault and i'm sorry. This issue was fixed in version 0.2.3
v0.2.0
Note
This version have an issue where error 'dns.query.NoDOH: Neither httpx nor requests is available.' when making request, this is happen because of some dependecies is missing in requirements.txt
, i know it's my fault and i'm sorry. This issue was fixed in version 0.2.3
New features
- Added
get_all_dns_provider()
, returning all available DoH providers. - Added new DoH providers
- cloudflare-security
- cloudflare-family
- opendns
- opendns-family
- adguard
- adguard-family
- adguard-unfiltered
- quad9
- quad9-unsecured
- Added
DNSOverHTTPSSession
for ready-to-use DoH requests session
Breaking changes
- Starting from v0.2.0, requests-doh rely on dnspython module for extending it's library usage and query to many public and private DNS.