Networking & DNS

DNS Records Explained: A, AAAA, CNAME, MX, TXT and More

A practical guide to every DNS record type — what they do, when to use them, and how to configure them.

Published Mar 20, 2025Updated Apr 25, 202610 min readBeginner
Table of Contents

What is DNS?

The Domain Name System (DNS) is the internet's phone book. It translates human-readable names like Power Down.in into IP addresses like 139.84.170.50. Without DNS, you'd have to memorise IP addresses for every website.

DNS Record Types

TypePurposeExample
AMaps domain to IPv4 addressPower Down.in → 139.84.170.50
AAAAMaps domain to IPv6 addressPower Down.in → 2400:6180::1
CNAMEAlias one name to anotherwww → Power Down.in
MXMail server for the domainPower Down.in → mail.Power Down.in (priority 10)
TXTText data (SPF, DKIM, verification)v=spf1 include:sendgrid.net ~all
NSNameservers for the domainns1.cloudflare.com
PTRReverse DNS — IP to hostname50.170.84.139.in-addr.arpa → mail.Power Down.in
SRVService location (ports, priority)Used by SIP, XMPP, Minecraft
CAAWhich CAs can issue SSL certs0 issue "letsencrypt.org"

A Record — The Most Common

# Points your domain to your server IP
Name: @          Type: A    Value: 139.84.170.50
Name: www        Type: A    Value: 139.84.170.50
Name: mail       Type: A    Value: 139.84.170.51

CNAME vs A Record

Use A when you know the IP. Use CNAME when pointing to another hostname (e.g., a CDN). You cannot use CNAME on the root domain (@) — only on subdomains.

MX Records for Email

Name: @    Type: MX    Value: mail.Power Down.in    Priority: 10
Name: @    Type: MX    Value: mail2.Power Down.in   Priority: 20

Lower priority number = higher preference. Mail servers try the lowest number first.

TXT Records — SPF, DKIM, DMARC

# SPF — authorize your mail server to send email
Name: @    Type: TXT    Value: "v=spf1 ip4:139.84.170.51 ~all"

# DMARC — tell receiving servers what to do with failing emails
Name: _dmarc    Type: TXT    Value: "v=DMARC1; p=quarantine; rua=mailto:dmarc@Power Down.in"

TTL (Time To Live)

TTL controls how long DNS resolvers cache your record (in seconds). Lower TTL = faster propagation when you make changes. Recommended:

  • Before making changes: Set TTL to 300 (5 minutes)
  • Normal operation: 3600–86400 (1–24 hours)

Check DNS Propagation

dig Power Down.in A
dig Power Down.in MX
nslookup Power Down.in 8.8.8.8
DNSA recordCNAMEMXTXTnetworking
Was this article helpful?

Join Our Discord

Connect with our community of gamers and developers

Get instant support, share experiences, and stay updated with the latest news

Join Us On Discord
2026 VPS SaleLIMITED TIME
View Sale Plans