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):
nslookup -type=MX yourdomain
nslookup -type=TXT yourdomain
nslookup -type=NS yourdomainHow many MX records are there, and which one has the lowest priority number?
Is there a TXT record that starts with
v=spf1? Copy its first include.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.
