dns-lookup domain-records networking troubleshooting

DNS Lookup Online Free: Check A, MX, TXT, and CNAME Records

Perform a free online DNS lookup to verify domain records. Learn how to check A, MX, TXT, and CNAME records to troubleshoot domain and email issues.

2026-04-16

DNS Lookup Online Free: Check A, MX, TXT, and CNAME Records

The Domain Name System (DNS) is often called the "phonebook of the internet." It translates human-friendly domain names like google.com into machine-readable IP addresses like 142.250.190.46. When your website is down or your emails aren't arriving, a DNS lookup online free tool is your first line of defense.


How DNS Works

When you type a URL into your browser, a complex chain of events happens in milliseconds:

  1. Recursive Resolver: Your ISP's server looks for the address.
  2. Root Nameserver: Points to the correct TLD (e.g., .com).
  3. TLD Nameserver: Points to the authoritative nameserver for your specific domain.
  4. Authoritative Nameserver: Returns the final IP address.

Common DNS Record Types

Understanding these records is key to managing any domain:

1. A Record (Address)

Maps a domain to an IPv4 address.

2. AAAA Record

Maps a domain to an IPv6 address.

3. MX Record (Mail Exchange)

Specifies the mail servers responsible for receiving email for the domain.

4. TXT Record (Text)

Used for various purposes like SPF, DKIM, and DMARC verification to prevent email spoofing.

5. CNAME Record (Canonical Name)

Aliases one domain name to another (e.g., www.example.com to example.com).


Why Use an Online DNS Lookup Tool?

  • Global Perspective: Your local computer might have cached old records. Online tools provide fresh results.
  • Troubleshooting Propagation: Check if your recent DNS changes have reached the rest of the world.
  • Email Delivery: Verify your SPF and MX records to ensure your emails aren't marked as spam.

How to Perform DNS Lookups in Code

Node.js

const dns = require('dns');

dns.resolveMx('google.com', (err, addresses) => {
  console.log('MX Records:', addresses);
});

Python

Using the dnspython library:

import dns.resolver

result = dns.resolver.resolve('google.com', 'A')
for ipval in result:
    print('IP', ipval.to_text())

FAQ

What is TTL (Time to Live)?

TTL tells DNS servers how long to cache a record before checking for updates. Low TTL (e.g., 300s) is good for migrations; high TTL (e.g., 86400s) is good for stability.

Why do DNS changes take 48 hours?

This is called "DNS Propagation." It takes time for every server around the world to expire their old cached records and fetch the new ones.


Conclusion

DNS is the glue that holds the web together. By using a DNS lookup online free tool, you can gain deep insights into how your domain is behaving and quickly resolve infrastructure issues.