New: mailX now works inside ChatGPT. Try it →
Free DNS Lookup Tool

DNS Lookup: Check All DNS Records of a Domain in One Search

Enter a domain to see its A, AAAA, CNAME, MX, NS, TXT and SOA records at once, with their TTL. Find who hosts the website, who receives the email and which nameservers answer for the domain.

Results

  • 7 record types in one check
  • Live DNS answers with TTL
  • Free, no signup

What this DNS lookup shows

One search returns every common record type for the name you enter. Each record comes with its TTL, the number of seconds resolvers can cache it.

RecordWhat it tells youExample
AThe IPv4 address of the domain (website or service)203.0.113.10
AAAAThe IPv6 address of the domain2001:db8::10
CNAMEAn alias: this name points to another host namewww.github.com to github.com
MXThe mail servers that receive email, with their priority10 mx1.provider.com
NSThe nameservers that hold the domain's DNS zonens1.registrar.com
TXTText records: SPF, domain verifications and morev=spf1 include:_spf.google.com ~all
SOAZone details: primary nameserver, admin contact, serial and timersns1.example.com hostmaster.example.com

Need one record type only, or more detail? Use the dedicated tools: MX Lookup for mail servers, TXT Lookup for SPF and verification records, CNAME Lookup for aliases and PTR Lookup for reverse DNS.

How it works

How to check the DNS records of a domain

Four steps to read a DNS lookup and spot what is wrong.

01

Enter the exact name

Type the domain (example.com) or the full subdomain (www.example.com, mail.example.com). Records are per name: a CNAME on www does not exist on the root domain.

02

Read the nameservers first

The NS records show who controls the DNS zone. If they are not the provider where you edit your records, your changes will never show up.

03

Check the record you changed

Find the A, MX or TXT value you edited. If you still see the old value, wait for the old TTL to expire, then search again.

04

Go deeper with a dedicated tool

Use the MX, TXT, CNAME or PTR lookup for one record type, or the SPF, DKIM and DMARC checker to validate email records.

Nameserver lookup, A record lookup and SOA lookup

Nameserver (NS) lookup

NS records list the servers that are authoritative for the domain. They are set at your registrar. After moving your DNS to a new provider (Cloudflare, Route 53, your host), the NS records must point to the new nameservers, or the records you add there are ignored.

A and AAAA record lookup

A records give the IPv4 address of a name, AAAA records its IPv6 address. They tell you which server hosts the website. A domain can have several A records for load balancing.

SOA lookup

The SOA (Start of Authority) record describes the zone: its primary nameserver, the administrator's address (with a dot instead of the @), a serial number that changes with each edit, and the refresh, retry, expire and minimum TTL timers.

Why don't I see my new DNS record yet?

Resolvers cache records for the duration of their TTL. After a change, some resolvers keep serving the old value until that time runs out. Lowering the TTL a day before a planned change makes the switch faster.

How to do a DNS lookup from the command line

Replace example.com with your domain and MX with the record type you want (A, AAAA, CNAME, NS, TXT, SOA).

macOS and Linux (dig):

dig example.com MX +short
dig example.com NS +short

Windows (Command Prompt):

nslookup -type=MX example.com

Windows (PowerShell):

Resolve-DnsName example.com -Type MX

Reading your DNS lookup results

Common findings and what to do next.

Records found

The domain resolves. Check the values against what your providers asked you to publish.

No MX record

The domain cannot receive email unless senders fall back to its A record. Add the MX records your email provider gives you.

Unexpected nameservers

Your records are managed somewhere else than you think. Edit them at the provider shown in the NS records.

Old value still showing

The previous record is still cached. Wait for its TTL to expire before searching again.

CNAME on the root domain

A CNAME cannot sit next to other records on the same name. Use it on a subdomain such as www.

No SPF in the TXT records

Receivers cannot check who may send for the domain. Create an SPF record with the SPF generator.

Your DNS answers. Are your email records right?

Check SPF, DKIM and DMARC for your domain in one free test, with the fix for every error.

DNS Lookup FAQ

Basics

What is a DNS lookup?
A query that asks DNS servers for the records of a domain: its IP addresses, mail servers, nameservers and text records. The mailX DNS lookup returns A, AAAA, CNAME, MX, NS, TXT and SOA records in one search.
How do I check all the DNS records of a domain?
Enter the domain in the mailX DNS lookup. It returns every common record type with its TTL. For one type in detail, use the MX, TXT, CNAME or PTR lookup.
How do I find the nameservers of a domain?
Look at the NS records in the DNS lookup result. They show which provider hosts the domain's DNS zone.

Records

What is the difference between an A record and a CNAME?
An A record points a name to an IP address. A CNAME points a name to another name, which then resolves to an address.
What is an SOA record?
The Start of Authority record of a zone: primary nameserver, administrator contact, serial number and refresh timers.
What does TTL mean in a DNS record?
Time to live: how many seconds resolvers may cache the record before asking again.

Troubleshooting

Why does my DNS change not show up?
Resolvers still cache the old record until its TTL expires, or your nameservers point to another provider than the one where you made the change.
Can I look up the DNS of a subdomain?
Yes. Enter the full name, such as mail.example.com or www.example.com. Each name has its own records.
How do I do a DNS lookup on Windows?
Use nslookup -type=MX example.com in Command Prompt, or Resolve-DnsName example.com -Type MX in PowerShell.