March 2019
Beginner
490 pages
12h 40m
English
The IP address can be translated into human-readable strings called domain names. DNS is a big topic in the world of networking. In this section, we will create a DNS client in Python, and see how this client will talk to the server using Wireshark.
A few DNS client libraries are available from PyPI. We will focus on the dnspython library, which is available at http://www.dnspython.org.
You can install this library by using either the easy_install command or the pip command:
$ pip install dnspython
In this practical example, we will use dnspython to execute queries on several types of DNS records, such as IPv4 (A), IPv6 (AAAA), name servers (NS), and mail exchange (MX).
The main utility of dnspython regarding other ...
Read now
Unlock full access