Python client for DNS over HTTPS (DoH) protocol
Example usage:
>>> import client
>>> print(client.query("one.one.one.one"))
['1.0.0.1', '1.1.1.1']
>>> print(client.query("one", "NS"))
['a.nic.one.', 'b.nic.one.', 'c.nic.one.', 'd.nic.one.']
Python client for DNS over HTTPS (DoH) protocol
License: MIT License
In the following bug, the call to the python function query("mail.google.com")
returns the IPv6 hostname (googlemail.l.google.com
) and the IPv4 address, instead of the IPv6 address (2607:f8b0:4009:802::2005
) and the IPv4 address (172.217.4.37
):
~/python-doh# python
Python 2.7.9 (default, Sep 14 2019, 20:00:08)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import client
>>> print(client.query("one.one.one.one"))
['1.0.0.1', '1.1.1.1']
>>> print(client.query("cnn.com"))
['151.101.1.67', '151.101.65.67', '151.101.129.67', '151.101.193.67']
>>> print(client.query("mail.google.com"))
['googlemail.l.google.com.', '172.217.4.37']
>>> print(client.query("googlemail.l.google.com"))
['172.217.4.37']
>>> exit()
~/python-doh# nslookup
> mail.google.com
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
mail.google.com canonical name = googlemail.l.google.com.
Name: googlemail.l.google.com
Address: 172.217.4.101
Name: googlemail.l.google.com
Address: 2607:f8b0:4009:802::2005
> exit
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.