DNS Record Types Explained (A, CNAME, MX, TXT)
- Networking Fundamentals & OSI Model
- TCP/IP Model
- Network Topologies
- IP Addressing & Subnetting
- Routing Algorithms & Protocols
- Switching Concepts
- Transport Layer Protocols (TCP & UDP)
- Application Layer Protocols
- Network Security & Firewalls
- Wireless Networking & Wi-Fi
- Network Address Translation (NAT)
- DNS Deep Dive
- Congestion Control & Flow Control
- Error Detection & Correction
- Network Devices
- VPN & Tunneling
- Load Balancing & CDN Networking
- Socket Programming
- Network Troubleshooting Tools
- Physical Layer & Transmission Media
- Data Link Layer & MAC Addressing
- Ethernet Protocol
- ARP (Address Resolution Protocol)
- ICMP Protocol
- Unicast, Multicast, Broadcast and Anycast
- Proxy Servers
- Port Numbers Reference
- Network Performance Metrics
- Quality of Service (QoS)
- Software-Defined Networking (SDN)
- HTTP/2 and HTTP/3 Overview
- 5G and Mobile Networks
- IoT Networking Basics
- VoIP Networking Basics
What a DNS Record Actually Is
A domain's DNS configuration isn't just one single piece of information - it's a set of different record types, each serving a distinct purpose, from pointing to a website's server to configuring where its email should be delivered.
A Record: The Basic Address Mapping
example.com. A 93.184.216.34An A record maps a domain name directly to an IPv4 address - the most fundamental and common DNS record type.
CNAME Record: An Alias for Another Name
www.example.com. CNAME example.com.A CNAME record points one domain name to another domain name, rather than directly to an IP address. If example.com's IP address ever changes, every CNAME pointing to it automatically stays correct, since it wasn't the CNAME that needed updating.
MX Record: Where Email Should Go
example.com. MX 10 mail.example.com.MX (Mail Exchange) records tell other mail servers which server is responsible for accepting email for a domain - and the priority number lets multiple mail servers be configured with a preferred order.
TXT Record: Arbitrary Text Data
TXT records store free-form text, commonly used to verify domain ownership (for services like Google Workspace) or to configure email authentication policies like SPF and DKIM, which help prevent email spoofing.
Quick Reference
| Record | Points to | Common use |
|---|---|---|
| A | An IPv4 address | Basic website hosting |
| CNAME | Another domain name | Aliases, subdomains |
| MX | A mail server | Email delivery |
| TXT | Arbitrary text | Domain verification, email security |