DNS record types
The DNS has five main types of records—A, AAAA, MX, TXT, CNAME, and * (ALL/ANY).
As we have learned, the DNS's primary purpose is to translate hostnames into IP addresses. This is done with two record types – type A and type AAAA. These records work in the same way, but A records return an IPv4 address, while AAAA records return an IPv6 address.
The MX record type is used to return mail server information. For example, if you wanted to send an email to larry@example.com, then the MX record(s) for example.com would indicate which mail server(s) receives emails for that domain.
TXT records can be used to store arbitrary information for a hostname. In practice, these are sometimes set to prove ownership of a domain name or to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access