logo
GeekFormat

DNS Lookup

Single DNS Lookup

Quickly confirm the current return value of a specific record type, and compare with propagation check results.

Free online DNS lookup tool. Enter a domain to query 7 DNS record types: A/AAAA/CNAME/MX/TXT/NS/SOA. Backend queries without CORS restrictions, displays TTL and MX priority, supports one-click copy.

Related

Use Cases

  • When a website is unreachable, query A/AAAA records to confirm IP points to correct server
  • After CDN switch/server migration, query DNS to confirm new resolution has propagated
  • When configuring business email/Google Workspace/Office 365, verify MX record priority and addresses
  • After configuring SPF/DKIM/DMARC email security policies, query TXT records to confirm correct configuration
  • During domain ownership verification (Google Search Console/SSL issuance/Apple Developer, etc.), check TXT records are published
  • After domain DNS server changes, query NS records to confirm propagation
  • Troubleshoot email delivery failures, domain resolution pollution, DNS hijacking and other issues

Features

  • 7 record types: A/AAAA/CNAME/MX/TXT/NS/SOA with one-click switching, covering most DNS lookup scenarios
  • Backend DNS queries: Recursive queries from server, no browser CORS restrictions, no local caching, showing real-time authoritative results
  • Smart field extraction: Automatically identifies value/answer/data fields for each record type, MX records automatically display priority
  • TTL display: Each record shows TTL (cache time) to determine record propagation and change status
  • Recent lookup history: Automatically saves last 8 queried domains, click to quickly switch
  • Preset domains: Built-in quick examples for geekformat.com/github.com/cloudflare.com/openai.com
  • One-click copy: Supports copying summary, complete record list, or raw JSON in three modes

How to Use

  1. Enter the domain to query (e.g., example.com, no http:// prefix or www needed)
  2. Click to select the DNS record type to query (A/AAAA/CNAME/MX/TXT/NS/SOA)
  3. Click the query button; the tool initiates recursive queries from backend DNS servers
  4. View top summary (record type, record count) to confirm records were returned
  5. View each record's value, TTL, and additional information (like MX priority) in the record details section
  6. One-click copy summary or complete record list, expand JSON to view raw response

FAQ

What is DNS? Why do I need to look up DNS records?

DNS (Domain Name System) is the internet's "phone book", translating human-readable domain names (like example.com) into machine-readable IP addresses. Looking up DNS records allows you to: 1) Confirm if domain resolution is working; 2) Troubleshoot website accessibility issues; 3) Verify MX/TXT email configurations are correct; 4) Check if CDN switches or domain migrations are complete; 5) Confirm SPF/DKIM/DMARC security records are configured.

Why do local queries show different results than this tool?

The reason is usually DNS caching: your local computer, router, and ISP recursive DNS servers all cache DNS records, returning cached results instead of new values within the TTL period. After changing DNS records, nodes need to wait for TTL expiration to see new values. This tool queries from backend public DNS nodes, bypassing local/ISP caching to show the latest authoritative resolution results.

What is the difference between A and AAAA records?

A records map domains to IPv4 addresses (e.g., 192.0.2.1), while AAAA records (also called IPv6 address records) map domains to IPv6 addresses (e.g., 2001:db8::1). Modern websites typically configure both A and AAAA records for dual-stack IPv4/IPv6 access. AAAA is 4 times the length of A (IPv6 addresses are 128-bit vs IPv4's 32-bit), hence the name "quad-A" record.

Should I use CNAME or A records?

Root domains (like example.com, without www) cannot use CNAME (CNAME blocks other record types, violating RFC specifications) and must use A/AAAA records. Subdomains (like www, cdn, api) can use CNAME to point to another domain (common in CDN scenarios, e.g., www.example.com → example.cdn.cloudflare.com). Domains with MX, NS, or SOA records also cannot have CNAME records.

What does the priority number in MX records mean?

Smaller priority/preference numbers in MX records indicate higher priority. When sending email, the smallest numbered MX server is tried first; if connection fails, other MX servers are tried in ascending numerical order. Common configuration: primary MX set to 10, backup MX set to 20; multiple servers with equal priority can use the same number (load balancing). Don't set only one MX server, as single point of failure will prevent email delivery.

What are common uses for TXT records?

TXT records are the most flexible DNS record type, with common uses including: 1) SPF records: specify servers allowed to send email, preventing forged emails; 2) DKIM: email digital signature public keys; 3) DMARC: email policy reporting; 4) Domain ownership verification (Google Search Console, SSL certificate issuance, Apple developer verification, etc.); 5) Arbitrary custom text.

What is TTL? How long do DNS changes take to propagate?

TTL (Time To Live) is the caching duration for DNS records on recursive DNS servers, measured in seconds. After modifying DNS, the "propagation time" depends on the previous TTL setting: records with TTL=3600 (1 hour) take up to 1 hour to propagate globally; TTL=300 (5 minutes) propagates within 5 minutes. It is recommended to lower TTL to 300 seconds 24-48 hours before switching/migration, then restore normal TTL after completion. Note: cache refresh times vary across ISP recursive DNS servers; complete global propagation may take longer.

What is DNS Lookup?

DNS lookup is the process of requesting resolution records for a specific domain from DNS servers, and is one of the most fundamental internet operations - every website visit, email send, or API connection triggers DNS lookups behind the scenes. DNS records come in many types; the most commonly used include: A (IPv4 address), AAAA (IPv6 address), CNAME (alias), MX (mail server), TXT (text/verification/security policy), NS (DNS server), SOA (zone authority), etc.

**Why use an online DNS lookup tool?** Your local computer, browser, operating system, router, and ISP recursive DNS servers all cache DNS records (cache duration controlled by TTL), so what you see locally may be stale cached values. After modifying DNS records, you need a lookup tool independent of your local environment to confirm new records have taken effect on authoritative DNS. This tool performs direct recursive queries from backend public DNS nodes, **bypassing local/ISP caching** to return current authoritative resolution results.

**Common DNS lookup scenarios**: Confirm A/AAAA records point to correct IP when a website is unreachable; verify resolution after CDN switches/server migrations; check MX records and priorities after configuring business email (Google Workspace/Office 365, etc.); verify TXT records after configuring SPF/DKIM/DMARC anti-spam policies; check verification TXT records during domain ownership verification (Google Search Console, SSL issuance, Apple Developer).

**Core usage of each record type**: A/AAAA are the most basic address records; CNAME is used for subdomain aliases (common in CDN scenarios, but cannot be used at root domain); MX includes priority and determines mail delivery paths; TXT is the "Swiss Army knife" record for SPF/DKIM/DMARC/domain verification; NS specifies which DNS server is authoritative; SOA records zone version, primary NS, admin email, and refresh parameters.

This tool **supports 7 most commonly used DNS record types** (A/AAAA/CNAME/MX/TXT/NS/SOA). Backend DNS queries are not affected by browser CORS restrictions or local caching, automatically extracting each record's value, TTL, and additional information (like MX priority). Supports quick switching between recent lookups, preset quick examples, and one-click copying of summaries/record lists/raw JSON.

术语表

DNS (Domain Name System)
The Domain Name System, one of the internet's core infrastructures, resolves human-readable domains (example.com) to machine-usable IP addresses (93.184.216.34). Uses a hierarchical distributed database design, with resolvers, root DNS, TLD DNS, and authoritative DNS working together to complete resolution.RFC 1035
A Record (Address Record)
The most basic DNS record type, mapping domains to IPv4 addresses (32-bit, e.g., 192.0.2.1). A domain can have multiple A records (round-robin load balancing).
AAAA Record (IPv6 Address Record)
Maps domains to IPv6 addresses (128-bit, e.g., 2001:db8::1). Named "quad-A" because IPv6 addresses are 4 times the length of IPv4. Modern dual-stack websites configure both A and AAAA records.
CNAME (Canonical Name)
Alias record pointing one domain to another domain (not an IP). Commonly used for CDN and SaaS service integration (e.g., www → cdn.example.com). Note: root domains (@/apex) and domains with existing MX/NS/SOA records cannot use CNAME.
MX Record (Mail Exchange)
Specifies the domain's mail receiving servers, including priority (smaller numbers = higher priority) and mail server address. Sending mail servers attempt delivery by priority; equal priorities enable load balancing. Must point to a domain (cannot directly point to IP).
TXT Record (Text Record)
Arbitrary text records, originally for human-readable notes, now widely used for machine-readable scenarios like SPF (anti-spam), DKIM (email signing), DMARC (email policy), and domain ownership verification. Single TXT record maximum length is typically 255 characters; long text requires segmentation.
NS Record (Name Server)
Specifies the authoritative DNS servers for a domain, i.e., which DNS servers hold the final resolution records. Domains require NS specification at registration (e.g., ns1.cloudflare.com); changing NS switches DNS providers. NS changes require upstream DNS (registry) updates and propagate slowly.
TTL (Time To Live)
The validity duration for DNS records in recursive resolvers and local DNS caches, measured in seconds. Before expiration, resolvers return cached results directly; after expiration, they re-query authoritative servers. TTL settings must balance resolution performance and change flexibility.
Recursive DNS (Recursive Resolver)
Client-facing DNS servers (like 8.8.8.8, 1.1.1.1) that receive client requests and query root → TLD → authoritative DNS on behalf of the client, returning and caching final results. ISPs and public DNS services provide recursive resolution.
Authoritative DNS (Authoritative Nameserver)
Servers holding a domain's original DNS records (NS servers provided by domain registrars/CDNs), giving "authoritative answers" for domains they host, without caching results for other domains.
SPF / DKIM / DMARC
Three major email security DNS records: SPF (Sender Policy Framework) specifies legitimate sending server IPs; DKIM (DomainKeys Identified Mail) adds digital signatures to verify email integrity; DMARC (Domain-based Message Authentication, Reporting and Conformance) defines handling policies (none/quarantine/reject) when SPF/DKIM fail, plus report addresses. All three are published via TXT records.

DNS Record Type Reference

Record TypeType IDPurposeExample
A1Maps domain to IPv4 addressexample.com → 93.184.216.34
AAAA28Maps domain to IPv6 addressexample.com → 2606:2800:220:1::
CNAME5Alias record pointing to another domainwww.example.com → example.com
MX15Mail server address and priority10 mx.example.com
TXT16Text records (SPF/DKIM/DMARC/verification)v=spf1 include:_spf.google.com ~all
NS2Specifies authoritative DNS servers for domainns1.example.com
SOA6Start of authority, contains primary NS/email/serialns1.example.com admin.example.com 2024010101
PTR12Reverse lookup (IP → domain)34.216.184.93.in-addr.arpa → example.com
CAA257Specifies CAs allowed to issue certificates0 issue "letsencrypt.org"
SRV33Service location (e.g., SIP/XMPP/LDAP)_sip._tcp.example.com

Recommended TTL Values for Common DNS Records

ScenarioRecommended TTLNotes
Stable production (normal)3600 seconds (1 hour)Balances caching efficiency and change flexibility
Upcoming switch/migration300 seconds (5 minutes)Lower 24-48 hours before switch to reduce cache refresh time
During switch process60 seconds (1 minute)Enables quick rollback; restore normal TTL after switch
CDN/high availability300-600 secondsBalances failover speed and DNS query load
MX mail records3600-86400 seconds (1h-1d)Mail records rarely change; longer TTL is acceptable
NS records86400 seconds (1 day)NS changes very rarely; long TTL improves resolution efficiency

Popular Public DNS Servers

ProviderPrimary DNSSecondary DNSFeatures
Google Public DNS8.8.8.88.8.4.4Global nodes, fast speeds, supports DNS-over-TLS
Cloudflare 1.1.1.11.1.1.11.0.0.1Privacy-first, fastest globally, supports DoH/DoT
OpenDNS208.67.222.222208.67.220.220Security filtering, phishing protection, parental controls
Quad99.9.9.9149.112.112.112Security protection, automatic malicious domain blocking

Authoritative References