Skip to content
ToolkitHub

DNS Lookup

Perform DNS lookups

Guide

Looking up DNS records from the browser

By Logappradeep · ServiceNow developer

The Domain Name System (DNS) is the internet's directory. It translates names people remember, like example.com, into the IP addresses and other data computers need. Whenever a site will not load, email bounces or a domain verification fails, the answer is often in the DNS records, and a lookup tool is the fastest way to see them.

How this tool queries DNS

Browsers cannot send raw DNS packets, so this tool uses DNS over HTTPS. When you click Lookup, your browser sends an encrypted HTTPS request to Cloudflare's public resolver at cloudflare-dns.com, asking for the domain and record type you chose. Cloudflare resolves the query and returns the answers as JSON, which the tool shows as a table of record type, TTL and data. The domain name you look up is therefore shared with Cloudflare; nothing else is sent. Errors such as NXDOMAIN, meaning the domain does not exist, are shown as messages.

Record types

  • A and AAAA: the IPv4 and IPv6 addresses of a host.
  • CNAME: an alias pointing one name at another, such as www pointing to a CDN hostname.
  • MX: mail servers for the domain, each with a priority; lower numbers are tried first, as in 10 mail.example.com.
  • TXT: free-form text used for SPF, DKIM and DMARC email authentication and for site ownership verification.
  • NS: the authoritative name servers for the zone.
  • SOA: the start of authority record, with the primary name server, admin contact and zone serial number.
  • PTR: reverse DNS, mapping an address back to a name.
  • SRV: the host and port for a specific service, used by protocols such as SIP and XMPP.

Understanding TTL

Every answer has a time to live in seconds. Resolvers cache the record for that long, so a record with a TTL of 3600 may keep serving the old value for up to an hour after you change it. This caching, not any global process, is what people call "DNS propagation." Lower the TTL a day before a planned migration so the switch takes effect quickly.

Pitfalls

Enter a bare hostname like example.com, not a URL with https:// or a path. DMARC and DKIM records live on special subdomains, so query _dmarc.example.com or selector._domainkey.example.com rather than the root domain. PTR lookups need the reversed address format, such as 4.3.2.1.in-addr.arpa for 1.2.3.4. A CNAME cannot coexist with other records on the same name, which is why most providers do not allow one at the zone apex. Finally, results come from Cloudflare's resolver cache; during a change, your ISP's resolver or the authoritative servers may briefly return something different.

Frequently asked questions

Which DNS server does this tool use?

It sends DNS over HTTPS queries to Cloudflare's public resolver at cloudflare-dns.com, so Cloudflare sees the domain names you look up.

Why do I still see an old record after changing it?

Resolvers cache records for their TTL. The old value can be served until that time expires, which is what people call propagation delay.

How do I check a domain's SPF or DMARC record?

SPF is a TXT record on the domain itself. DMARC is a TXT record on _dmarc followed by the domain, for example _dmarc.example.com.

What does NXDOMAIN mean?

It means the name does not exist in DNS. Check the spelling, and confirm the domain is registered and delegated to working name servers.