DNS record types

Match eight DNS record types to their job, sort record values by type, then pick the record that answers each of eight questions about a domain. With teacher notes and a lookup task for fast finishers.

Exercise20 minBachelor +2CC BY 4.0
3 tasks · 20 min

What you will learn

  • Name what A, AAAA, CNAME, MX, TXT and NS records hold
  • Recognise a record type from its value
  • Choose the record type for a task
  • Read MX priorities and TTLs

DNS is the internet's address book: it turns names such as contoso.example into the addresses and other facts computers need. Each fact is stored as a record of a certain type. The guide to DNS explains it step by step. This exercise takes about 20 minutes and has three tasks.

Quick reminder

Record

Holds

A

An IPv4 address, such as 203.0.113.10

AAAA

An IPv6 address, such as 2001:db8::10

CNAME

Another name this name is an alias for

MX

A priority and the name of a mail server

TXT

Free text, such as SPF rules

NS

The name servers responsible for the domain

All domains here end in .example and all addresses come from ranges reserved for documentation, so none of them is real.

Extension for fast finishers

Open a terminal and look up the records of your school's or university's domain (replace yourdomain with it):

Look up your school's records
nslookup -type=MX yourdomain
nslookup -type=TXT yourdomain
nslookup -type=NS yourdomain
  1. How many MX records are there, and which one has the lowest priority number?

  2. Is there a TXT record that starts with v=spf1? Copy its first include.

  3. Which name servers answer for the domain?

You can also check the mail servers with the Mailbox Provider Checker. There is no single right answer: every domain is different.

Teacher notes

How to run it (20 minutes). 3 minutes: go through the reminder table and ask which records learners have already met. 12 minutes: the three tasks, alone or in pairs. 5 minutes: compare the last two quiz questions, which are the most often missed.

Typical mistakes.

  • Thinking a higher MX number means higher priority. It is the other way round.

  • Reading TTL as minutes. It is always seconds.

  • Mixing up NS and MX because both name servers. NS servers answer DNS questions; MX servers receive email.

  • In the sort task, "v=DMARC1" is sometimes put under MX because it is about email. It is still a TXT record.

Follow-up questions.

  • Why does a domain often have two or more MX records?

  • Why should a company lower the TTL before it moves its website?

  • What could an attacker do if they could change a domain's NS records?

Differentiation.

  • Easier: keep the reminder table visible during the tasks. PTR and CAA are not in it, so match those two together as a class first.

  • Harder: learners write a small zone file for a fictional company, with an A, a CNAME for www, two MX records and an SPF record, and explain each line.

Network note. Some school networks block terminal DNS tools or use their own resolver. If nslookup fails, use the Mailbox Provider Checker for the MX part.

Use it with a class
  1. 1. Copy the class link and share it with your class.
  2. 2. Learners finish the exercise and get a result code.
  3. 3. Paste the codes into Class results to see everyone at once.
Change the tasks in the builder

Reuse this material

CC BY 4.0

You may copy, adapt and share it, also commercially, as long as you credit ManyPI and link back.

"DNS record types" by ManyPI (https://manypi.com/edu/dns-records-exercise), licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)