Skip to content

wglodek/dns-over-https

Repository files navigation

Unofficial Python Client for Google's Public DNS-over-HTTPs

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

image

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages