DNS protocol

DNS stands for Domain Name Server, the domain name service used to link IP addresses with domain names. DNS is a globally-distributed database of mappings between hostnames and IP addresses. It is an open and hierarchical system with many organizations choosing to run their own DNS servers.

The DNS protocol is used for different purposes. The most common are:

  • Names resolution: Given the complete name of a host, it can obtain its IP address.
  • Reverse address resolution: It is the reverse mechanism to the previous one. It can, given an IP address, obtain the name associated with it.
  • Mail servers resolution: Given a mail server domain name (for example, gmail.com), it can obtain the server through which communication is performed ...

Get Mastering Python for Networking and Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.