In this chapter, you will learn how to work with IP, DNS networking, and geolocation in Python. Through practical examples, you will learn how to determine the IP address of your own computer and look up other computers in the network. You will also learn how to extract information from DNS servers with the dnspython module and extract information about geolocation IP addresses.
The following topics will be covered in this chapter:
- Principles of the IP protocol
- Retrieving the network configuration of a local machine
- Using Python to manipulate IP addresses and perform CIDR calculations
- The DNS Python module as a tool for extracting information from DNS servers
- GeoIP lookups with pygeoip and python-geoip