In this section, you will learn how to obtain information from DNS servers with the dnspython module.
The dnspython module as a tool for extracting information from DNS servers
Working with dnspython
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...