DNS over HTTPS resolver for python requests
Project description
requests-doh
DNS over HTTPS resolver for python requests using dnspython module
Key features
- Resolve hosts using public DNS servers or custom DNS servers over HTTPS
- DNS caching, making faster to resolve hosts
- Easy to use
Installation
You must have Python 3.8.x or up with Pip installed.
PyPI (stable version)
# For Linux / Mac OS
python3 -m pip install requests-doh
# For Windows
py -3 -m pip install requests-doh
Git (Development version)
git clone https://github.com/mansuf/requests-doh.git
cd requests-doh
python setup.py install
For more information about installation, see Installation
Usage
# for convenience
from requests_doh import DNSOverHTTPSSession
# By default, DoH provider will set to `cloudflare`
session = DNSOverHTTPSSession(provider='google')
r = session.get('https://google.com')
print(r.content)
For more information about usage, see API usage
Links
License
See LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
requests-doh-0.3.3.tar.gz
(13.1 kB
view hashes)
Built Distribution
Close
Hashes for requests_doh-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2284cc8648b212e9eef4d10a97a01b6eca5d9520e4a7bd88b1719b99d4ac156e |
|
MD5 | 96c171b99951bd4730a9e48e1ddf1fb6 |
|
BLAKE2b-256 | 1f479114a04925642befe5753639d581774dc16968c31c806765d0e6fb6e95ee |