Common DNS Record Types
Learn A, AAAA, CNAME, MX, and other records and what they do.
Common DNS Record Types is a free Network+ Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Network+ Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Records Hold the Answers
A DNS zone stores different kinds of resource records, each mapping a name to a specific piece of information. The record type tells you what kind of answer it provides.
The exam expects you to recognize the most common types and what each does. This lesson covers the essentials.
The A Record
The A record (Address record) maps a domain name to an IPv4 address. It is the most common record and the one most lookups ultimately seek.
For example, an A record might map example.com to 93.184.216.34. When you browse to a name, an A record usually supplies the IPv4 address you connect to.
example.com A 93.184.216.34The AAAA Record
The AAAA record (quad-A) maps a name to an IPv6 address. It plays the same role as an A record but for the newer 128-bit addresses.
Dual-stack hosts publish both A and AAAA records so clients can connect over whichever protocol they support. The four As hint at IPv6’s four-times-larger address size.
The CNAME Record
The CNAME record (Canonical Name) creates an alias, pointing one name to another name rather than an address. For example, www.example.com might be a CNAME for example.com.
This lets several names share one target, so updating the underlying address in one place updates them all. A CNAME points to a name, never directly to an IP.
The MX Record
The MX record (Mail Exchanger) specifies the mail servers that accept email for a domain. It includes a priority value so backups can be tried in order.
When someone emails you@example.com, the sending server looks up example.com’s MX records to find where to deliver the mail.
The NS Record
The NS record (Name Server) lists the authoritative name servers for a domain. These are the servers that hold the domain’s records.
NS records are how delegation works: a parent zone uses NS records to point to the servers responsible for a child zone, building the DNS hierarchy.
The PTR Record
The PTR record (Pointer) does the reverse of an A record, mapping an IP address back to a name. This is reverse DNS.
PTR records are used in email anti-spam checks and logging, where a server wants to confirm the name behind an address. They live in a special reverse-lookup zone.
The TXT Record
The TXT record holds arbitrary text. Today it is widely used for email security and verification, such as SPF, DKIM, and domain-ownership proofs.
For example, an SPF TXT record lists which servers may send mail for a domain, helping receivers detect spoofed email. TXT records are flexible and increasingly important.
The SOA Record
The SOA record (Start of Authority) sits at the top of every zone and holds administrative details: the primary name server, contact email, and timers like refresh and the default TTL.
Each zone has exactly one SOA. It defines the zone’s authority and governs how secondary servers stay in sync.
The SRV Record
The SRV record (Service) locates the server and port for a specific service, such as VoIP or directory logins. It includes priority, weight, port, and target host.
SRV records let clients automatically discover where a service lives instead of hard-coding a server name and port, and they are heavily used by Active Directory.
Record Type Cheat Sheet
Summarize the key records:
- A = name to IPv4; AAAA = name to IPv6
- CNAME = alias to another name
- MX = mail servers; NS = name servers
- PTR = IP to name (reverse); TXT = text/verification
Knowing these covers the vast majority of exam questions.
Quick Check
Match the need to the record.
Recap
You learned the common DNS record types.
- A maps a name to IPv4; AAAA maps to IPv6.
- CNAME is an alias to another name (never an IP).
- MX names mail servers; NS names authoritative servers.
- PTR does reverse (IP to name); TXT holds text like SPF/DKIM.
- SOA sits atop each zone with admin and timing details.
Frequently asked questions
Is the “Common DNS Record Types” lesson free?
Yes — the full text of “Common DNS Record Types” is free to read here on the web, and the Network+ Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Network+ Academy course, upgrade to CoddyKit PRO.
What will I learn in “Common DNS Record Types”?
Learn A, AAAA, CNAME, MX, and other records and what they do. You practise Network+ Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Network+ Academy?
No prior experience is required. Network+ Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Common DNS Record Types” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Network+ Academy lesson?
Yes. Every Network+ Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Why DNS Exists
- Walking Through a DNS Lookup
- Common DNS Record Types
- Caching, TTL, and DNS Issues