# DNS record

What is a DNS record?

A DNS record is one entry in a domain's zone, the set of records that [DNS](/glossary/dns) serves for that domain. Each record says one thing about one name: where the website lives, which servers accept mail, which services may act on the domain's behalf. Resolvers fetch records and cache them, and browsers, mail servers and other services act on what they receive.

## How it works

Every record has a name, a [TTL](/glossary/ttl) in seconds, a class (almost always `IN`, for internet), a type and a value:

```text
example.com.      3600  IN  A      203.0.113.10
example.com.      3600  IN  AAAA   2001:db8::10
www.example.com.  3600  IN  CNAME  example.com.
example.com.      3600  IN  MX     10 mail.example.com.
example.com.      3600  IN  TXT    "v=spf1 include:_spf.example.net -all"
```

The types you meet most often:

- A and AAAA: the IPv4 and IPv6 address of a name.
- CNAME: makes a name an alias of another name. A CNAME cannot share its name with any other record, which is why the bare domain usually cannot be one.
- [MX](/glossary/mx-record): the mail servers for the domain.
- TXT: free text, used for SPF, DKIM keys, DMARC policies and ownership checks by other services.
- NS: the authoritative name servers for the zone.
- CAA: the [certificate authorities](/glossary/certificate-authority) allowed to issue certificates for the domain.
- SOA: administrative data about the zone itself.

## Why it matters

Each record controls one part of how your domain behaves: where web traffic goes, where mail is delivered, which senders are allowed, which services trust you. Changing a record is a production change, but it rarely gets the review a code change gets, and its effect is delayed by caching.

## What can go wrong

- A record still points at an old server after a migration, or carries a typo in the address.
- A TXT record that a service depended on is deleted, and mail starts failing its checks or a verified integration stops working. See [email deliverability](/glossary/email-deliverability).
- A CNAME keeps pointing at a third-party resource you have since deleted. Anyone who can claim that resource can then serve content on your subdomain.
- An AAAA record points at an address where nothing listens, so clients that prefer IPv6 fail while IPv4 works.

## Check it

The [DNS lookup](/tools/dns-lookup) lists every record of a domain grouped by type, each with its TTL. Ranetrace's [DNS monitoring](/features/dns-monitoring) re-reads your records every hour and tells you when one changes.

Read this definition in a browser: https://ranetrace.com/glossary/dns-record
