Python client for Google's Public DNS-over-HTTPS service
Project description
Simple Python client for Google’s Public DNS-over-HTTPS service.
Quickstart
>>> from dns_over_https import SecureDNS
>>> r = SecureDNS()
>>> r.gethostbyname('www.breakpoint-labs.com')
u'37.60.235.49'
>>> r = SecureDNS(query_type='AAAA')
>>> r.gethostbyname('www.google.com')
u'2607:f8b0:400d:c02::6a'
>>> r.resolve('www.mit.edu')
[u'2001:590:100b:182::255e', u'2001:590:100b:18b::255e']
>>>
Installation
To install dns_over_https, simply:
$ pip install dns_over_https
Documentation
Coming soon.
License
MIT
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
dns_over_https-0.0.2.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dns_over_https-0.0.2.tar.gz.
File metadata
- Download URL: dns_over_https-0.0.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f83ff68d85dac1a92c3312ae79bcff6537236b15cca674c6a26cfe45a770b0c6
|
|
| MD5 |
db5cf828ac6320500745e3204540417c
|
|
| BLAKE2b-256 |
9b4e4c96dd72ece07a0efb20ff5e212c94e3c98326d7941a4283899b2012b4ed
|
File details
Details for the file dns_over_https-0.0.2-py2-none-any.whl.
File metadata
- Download URL: dns_over_https-0.0.2-py2-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efd962502576ddea36e18e90349011c402b57592035917e4ea4e64a05718556b
|
|
| MD5 |
b897ba5b71b5595d19ecd8d0ac0c9427
|
|
| BLAKE2b-256 |
c5af1209f9af31e18634d69b8609e31fcf5335d598633b14324f81fbecff0c49
|