DNS is the internet’s directory. A handful of record types decide where a website lives, where email goes, and which services may speak for a domain.
How a lookup works
When you type a domain, your device asks a recursive resolver, usually run by your provider or a public DNS service. The resolver follows delegations from the root servers to the top-level domain and then to the domain’s authoritative name servers, which return the records the domain owner published. The resolver caches the answer for as long as the record’s TTL allows.
RFC 1034 and RFC 1035 define this system. Everything below is a record stored on those authoritative servers.
The record types you will see
- A: maps a name to an IPv4 address. A website usually needs at least one.
- AAAA: maps a name to an IPv6 address. Missing AAAA records simply mean the site is reached over IPv4.
- CNAME: says one name is an alias of another. A CNAME cannot sit at the bare domain alongside other records, which is why many hosts offer alternatives.
- MX: lists the mail servers that accept email for the domain, each with a priority number; lower numbers are tried first.
- TXT: free-form text, widely used for SPF email policies, DMARC policies and ownership verification tokens.
- NS: names the authoritative servers for the domain. If these are wrong, nothing else will resolve correctly.
- SOA: holds administrative data, including a serial number that changes when the zone is edited.
- CAA: lists the certificate authorities allowed to issue TLS certificates for the domain.
Reading a lookup result
Start with the symptom. If a site does not load, check A and AAAA. If email bounces, check MX and then the TXT records for SPF and DMARC. If a certificate request fails, check CAA. Compare the values with what your host or email provider told you to publish, character by character; a missing trailing dot or an extra space is a common cause.
- Run the DNS record lookup for the exact name that is failing, including any subdomain such as www or mail.
- Confirm the NS records point to the provider where you are editing the zone. Edits made at an old provider have no effect.
- If you recently changed a record, run the propagation checker to see whether public resolvers agree yet.
A note on what DNS reveals
DNS records are public by design. Anyone can see your mail provider, verification tokens and server addresses. Avoid putting secrets or internal hostnames in public records, and remove old verification TXT records you no longer need.
Tools and next reads
Sources
- RFC 1034: Domain Names, Concepts and Facilities
- RFC 1035: Domain Names, Implementation and Specification
- RFC 8659: DNS Certification Authority Authorization (CAA)
- Cloudflare Learning: DNS records
These guides provide general information. Check your provider’s own documentation for settings specific to your equipment.