Your progress0 of 55 complete

Course · Lesson 2 of 7

DNS records

Each entry in a DNS zone is called a record. Learn the six types you will see most often and three rules that save a lot of trouble. Then discover how DNSSEC helps detect forged DNS answers.

  • 16 minutes
  • 1 simulation, 3 exercises, 4 quiz questions

After this lesson, you can

  • name the six record types and explain what each one does
  • explain why a normal CNAME cannot sit at the root domain
  • explain that MX points to a hostname and the lowest number goes first
  • explain DNSSEC and why you check the DS record before changing nameservers

A DNS zone is a collection of DNS records for a domain. Each entry has a name, a type and a value. In many DNS control panels, @ means the domain itself, with nothing in front.

TypeMeaningExample
AThis name belongs to this IPv4 address@ → 203.0.113.10
AAAAThe same, for IPv6@ → 2001:db8::10
CNAMEThis name is an alias for another namewww → example-bakery.nl
MXEmail for this domain goes to this server@ → 10 mail.postman.example
TXTText used for SPF, DKIM, DMARC and proving that you control a domain@ → "v=spf1 ..."
NSWhich nameservers manage this domain@ → ns1.dnsprovider.example

Three rules that save a lot of trouble

  • The root domain (@) must have NS and SOA records. NS identifies the nameservers; SOA contains information used to manage the zone. A normal CNAME cannot coexist with these records. Use A and, if needed, AAAA at @. Some providers offer alternatives, such as Cloudflare's CNAME flattening.
  • An MX record points to a hostname, never an IP address. The number is its priority: the lowest number is tried first.
  • A website usually uses A, AAAA or CNAME. MX points to the mail server. Check whether that mail server uses the same hostname as the website. If it does, a change can affect email too.
Exercise
Exercise
Exercise

DNSSEC: is this DNS answer authentic?

Imagine someone supplies a forged DNS answer for the bakery, pointing to a different server. DNSSEC helps a resolver detect that forgery. DNSSEC stands for Domain Name System Security Extensions: an extension that makes DNS answers verifiable.

The DNS provider adds digital signatures to records. A validating resolver checks that the signatures are correct and belong to the domain. If security is configured but validation fails, the resolver refuses the answer.

DNSSEC does not encrypt traffic. You still need HTTPS for a secure connection to the website. DNSSEC does not prove that a website is trustworthy either.

The signature, the key and the DS record

DNSSEC introduces three more record types. Your DNS provider generates the information you need.

  • RRSIG: a digital signature for a set of DNS records with the same name and type.
  • DNSKEY: the public key a resolver uses to check a signature. It lives at your DNS provider. The provider keeps the private key secret.
  • DS: a digital fingerprint of a DNSKEY. It connects your domain to the right key. For a .nl domain, this record lives in the .nl zone. You set it through your registrar.

The resolver follows a chain of trust from the root, through .nl, to example-bakery.nl. This lets it check that the key really belongs to the domain.

What do you need to configure?

Enable DNSSEC at your DNS provider. Then copy the DS details into your registrar's DNSSEC settings. Some providers handle this automatically. Check that the link is active: signing at the DNS provider alone is not enough.

You do not add your domain's DS record alongside its A and MX records. You arrange it through the registrar so it appears in the parent zone.

Simulation

New nameservers, old DS record

The DNS records have moved, but the DS record still points to the old key. Click through six steps to see where validation fails. OLD and NEW are simple labels for the keys.

How to prevent this during a move.

Why check DNSSEC before moving?

A new DNS provider usually uses different keys. If the old DS record remains, it will not match the new key. Validating resolvers will often return SERVFAIL: the DNS query failed. This can make both the website and email unreachable.

For a simple move to Cloudflare, follow this order:

  1. Remove the old DS record through the registrar. Keep the old DNS provider signing for now.
  2. Wait for cached DS answers to expire. Ask the provider for that TTL. If it was one day, wait at least a day after the DS record is removed from the parent zone. Your A record's TTL does not determine this wait.
  3. Change nameservers once all records are ready. Then wait for cached nameserver referrals to expire too.
  4. Set up DNSSEC again. Enable it at the new DNS provider, publish the new DS record through the registrar and check that validation works.

This simple move temporarily removes DNSSEC protection. Keeping protection throughout a move requires coordination between providers. The Cloudflare lesson covers the full migration.

Quiz

What to remember

  • A record has a name, a type and a value. The name @ means the domain itself.
  • A normal CNAME cannot coexist with the required NS and SOA records at @. Providers can offer alternatives such as CNAME flattening.
  • Website and email settings can be separate. Check whether they share records before making changes.
  • DNSSEC validates DNS answers and their signatures. When changing nameservers, keep the DS record matched to the right keys.
Sources and further reading

Based on the Dutch course reviewed on 25 November 2026. These sources are in English.