Skip to main content

Python client for Google's Public DNS-over-HTTPS service

Project description

Simple Python client for Google’s Public DNS-over-HTTPS service.

https://travis-ci.org/wglodek/dns-over-https.svg?branch=master Code Climate Test Coverage

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
dns_over_https-0.0.2-py2-none-any.whl (4.4 kB) Copy SHA256 hash SHA256 Wheel 2.7 Oct 7, 2016
dns_over_https-0.0.2.tar.gz (2.8 kB) Copy SHA256 hash SHA256 Source None Oct 7, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page