When you type a website address into your browser, a chain of queries fires in milliseconds — translating a human-readable domain name into the numerical IP address of a server. This system is called the Domain Name System (DNS), a distributed database that maps domain names to internet resources. Understanding how DNS records work helps you diagnose website issues, configure email correctly, and verify domain ownership across third-party services.
What Is a DNS Record and Why Does It Matter
A DNS record is a line in a domain's zone file that tells the internet where to route a specific type of traffic. Every record contains a hostname, a type, a value, and a TTL (Time to Live) parameter — the number of seconds resolvers are allowed to cache the record. A lower TTL means changes propagate faster across the internet, at the cost of higher query volume on your DNS servers.
A TTL of 300 means the cache refreshes every 5 minutes. If you are planning to migrate your website to a new server, lower the TTL to 300–600 at least 24 hours in advance to speed up propagation.
The Seven Core DNS Record Types
These are the record types every domain owner encounters sooner or later.
| Type | What it does | Example value |
|---|---|---|
| A | Maps a domain to an IPv4 server address | 93.184.216.34 |
| AAAA | Same mapping for an IPv6 address | 2606:2800:220:1:248:1893:25c8:1946 |
| MX | Specifies mail servers and their delivery priority | 10 mail.example.com |
| NS | Delegates zone authority to specific nameservers | ns1.hosting.com |
| TXT | Stores arbitrary text: SPF, DKIM, service verification tokens | v=spf1 include:_spf.google.com ~all |
| CNAME | Creates an alias that points to another hostname | www → example.com |
| SOA | Describes the zone: primary nameserver, admin email, serial number | ns1.example.com. admin.example.com. 2024010101... |
How DNS Records Affect Your Email: MX, SPF, and DKIM
Configuring business email is one of the most common reasons to dig into DNS settings. The MX record tells sending servers where to deliver messages for your domain. Without a valid MX record, email simply will not arrive.
The TXT record carries two essential anti-spoofing mechanisms:
- SPF — lists the servers authorised to send email on behalf of your domain. Example:
v=spf1 include:_spf.google.com ~all. - DKIM — publishes the public key used to verify the cryptographic signature attached to outgoing messages, typically as
selector._domainkey.example.com. - DMARC — defines what receiving servers should do with messages that fail SPF or DKIM checks, published as a TXT record at
_dmarc.example.com.
If your emails are landing in spam or bouncing entirely, checking these three records is always the right first step.
How to Check DNS Records for Any Domain
You will need to inspect DNS records after moving a site to new hosting, when troubleshooting email delivery, or when verifying domain ownership with an external service.
Online lookup tools
The fastest method requires no software at all. The DNS record checker returns the full record set for any domain in seconds, including A, MX, TXT, NS, and CNAME entries. You can also explore other website analysis tools for broader diagnostics.
Command-line utilities
If you prefer working in a terminal, standard system tools give you precise control:
nslookup example.com— basic A-record query, available on Windows, Linux, and macOS.dig example.com MX— detailed MX record query on Linux and macOS.dig example.com TXT +short— concise TXT output, ideal for verifying SPF strings.host -t NS example.com— lists the authoritative nameservers for a domain.
DNS records are the foundation on which every website and email service is built. Keeping them accurate and up to date prevents outages and delivery failures before they affect real users. Once you understand the record types, diagnosing most domain-level infrastructure problems becomes a straightforward process.
Frequently asked questions
Why don't DNS changes take effect immediately?
Because of caching: every record has a TTL (time to live) during which providers and browsers hold the old value. Full propagation takes from a few minutes to 24–48 hours. Check the current state with the online DNS lookup.
Emails go to spam — which records should I check?
First the MX record (where mail is delivered), then the TXT records for SPF, DKIM, and DMARC. Those are what mail servers use to tell a genuine message from a forgery. SPF and DMARC can be checked separately with the SPF/DMARC tool.
What's the difference between an A record and a CNAME?
An A record points a domain straight to an IP address; a CNAME points to another domain name (an alias). A CNAME can't be set on the root domain, only on subdomains like www.
From the field
"After moving to a new host the site opened but email went silent. It turned out the MX records still pointed at the old provider. I checked DNS online, spotted the stale values, and fixed it in five minutes."
The reliability of hosts and mail services themselves is easy to compare via reviews in the Hosting & IT category.
Key takeaways
- DNS records determine where a domain points and how its email is handled.
- A/AAAA = IP address, MX = mail, NS = name servers, TXT = SPF/DKIM/verifications.
- Changes aren't instant because of TTL and caching.
- Email problems are almost always solved by checking the MX and TXT records.
Comments (0)