Skip to content

DNS

The Domain Name System (DNS) translates human-readable domain names into the IP addresses and services that computers use to communicate.

A fully qualified domain name is made from several parts. In api.example.com, api is the subdomain, example is the domain, .com is the top-level domain, and the final dot represents the DNS root zone.

Diagram showing the parts of a domain name

DNS records associate a hostname with an address, another hostname, or a service. The TTL controls how long resolvers may cache a record before asking for an updated value.

An A record maps a hostname to an IPv4 address. Multiple A records can be used for load balancing, failover, or high availability.

Diagram explaining a DNS A record

An AAAA record maps a hostname to an IPv6 address. Like A records, multiple AAAA records may exist for the same hostname.

Diagram explaining a DNS AAAA record

An MX record tells mail servers where to deliver email for a domain. The preference value determines priority: lower values are tried first.

Diagram explaining a DNS MX record

A CNAME record maps one hostname to another canonical hostname. The target hostname must ultimately resolve through an A or AAAA record.

Diagram explaining a DNS CNAME record

link