DNS servers

Humans are much better at remembering names to relate to objects than long sequences of numbers. It is much easier to remember the google.com domain than the IP. In addition, the IP address can change by movements in the network infrastructure, while the domain name remains the same.

Its operation is based on the use of a distributed and hierarchical database in which domain names and IP addresses are stored, as well as the ability to provide mail-server location services.

DNS servers are located in the application layer and usually use port 53 (UDP). When a client sends a DNS packet to perform some type of query, you must send the type of record you want to query. Some of the most-used records are:

  • A: Allows you to consult the ...

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.