Skip to content

Releases: mansuf/requests-doh

v1.0.0

07 Sep 13:43
Compare
Choose a tag to compare

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

v0.3.3

20 Feb 03:14
Compare
Choose a tag to compare

Fix bugs

  • Fixed missing dependencies (ModuleNotFoundError: No module named socks)

v0.3.2

23 Jan 07:35
Compare
Choose a tag to compare

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

11 Jun 05:10
Compare
Choose a tag to compare

This update fix requests dependencies because of CVE-202-32681

Dependencies

  • Bump requests from v2.28.2 to v2.31.0

v0.3.0

12 Feb 15:24
Compare
Choose a tag to compare

New features

  • Added ability to add custom DNS over HTTPS provider #1
  • Added ability to remove DNS over HTTPS provider

Improvements

  • Improved performance for querying DNS over HTTPS

v0.2.4

24 Jan 14:07
b63c81d
Compare
Choose a tag to compare

Dependecies

  • Updated requests from v2.28.1 to v2.28.2
  • Updated dnspython from v2.2.1 to v2.3.0

v0.2.3

23 Aug 03:10
Compare
Choose a tag to compare

Fix bugs

  • Fixed missing dependecies resulting error dns.query.NoDOH: Neither httpx nor requests is available.

v0.2.2

22 Aug 13:31
Compare
Choose a tag to compare

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

15 Aug 12:31
Compare
Choose a tag to compare

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

15 Aug 12:07
Compare
Choose a tag to compare

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.