New: Post-Quantum Cryptography tools — is your domain quantum-safe? Check now

dns

DNS Lookup

Query DNS records (A, AAAA, CNAME, TXT, NS, SOA)

What You Need to Know

What This Tool Does

DNS Lookup resolves domain names to IP addresses by querying DNS A (IPv4) and AAAA (IPv6) records. This is the fundamental process that allows browsers and applications to connect to websites and services.

Why It Matters

  • Website Accessibility: Must resolve correctly for your website to be reachable
  • Performance: Fast DNS resolution improves loading times
  • IPv6 Support: AAAA records ensure compatibility with modern networks
  • CDN Configuration: Multiple A records can distribute traffic across servers

How to Read the Results

  • A Records: IPv4 addresses (e.g., 192.0.2.1) - most common
  • AAAA Records: IPv6 addresses (e.g., 2001:db8::1) - newer standard
  • Multiple IPs: Indicates load balancing or redundancy
  • TTL: Lower values = faster propagation of changes, but more DNS queries

Technical Background

DNS (Domain Name System) lookup is the process of resolving a human-readable domain name into a machine-readable IP address, defined in RFC 1034 and RFC 1035. The resolution process follows a hierarchical chain: the resolver first checks its local cache, then queries the recursive resolver (usually provided by the ISP or configured manually, e.g., 8.8.8.8), which in turn queries the root name servers, TLD (.com, .net) authoritative servers, and finally the domain's authoritative name servers. DNS supports multiple record types: A records map to IPv4, AAAA to IPv6, CNAME creates aliases, NS delegates authority, SOA defines zone parameters, TXT carries arbitrary data (SPF, DKIM, DMARC, domain verification), MX routes email, PTR enables reverse lookup, and SRV locates services. DNS responses include a TTL (Time to Live) value specifying how long resolvers should cache the result — lower TTLs increase load on name servers but enable faster propagation of changes. DNSSEC (RFC 4033-4035) adds cryptographic authentication to DNS responses, preventing cache poisoning attacks. Understanding A and AAAA record lookups is fundamental for diagnosing connectivity issues, verifying CDN configuration, and confirming that DNS changes have propagated correctly across global resolvers. DNS propagation occurs when changes to DNS records are distributed across the global network of resolvers and caches. New records or changes may take minutes to 48 hours to propagate fully, depending on the old TTL value — a record with TTL 86400 (24 hours) may be cached for a full day before resolvers re-query. Tools like dig, nslookup, and online propagation checkers query multiple resolvers worldwide to verify propagation status. Common DNS issues include: stale cache causing old IP to be returned, missing A records for subdomains, CNAME loops, and wildcard record conflicts. Understanding DNS lookup mechanics is essential for web administrators, DevOps engineers, and security professionals managing domain infrastructure. Cloud and CDN architectures create complex DNS configurations: CNAME flattening (ALIAS or ANAME records) allows CNAME-like behavior at the apex domain. Anycast routing used by CDNs like Cloudflare and Akamai means different clients may resolve the same domain to different IPs based on geographic location — this is by design for performance. Split-horizon DNS serves different answers to internal vs external queries. DNS over HTTPS (DoH, RFC 8484) and DNS over TLS (DoT, RFC 7858) encrypt DNS queries to prevent ISP surveillance and MITM interception. Understanding DNS lookup behavior helps troubleshoot issues with CDN configuration, geographic routing, and DNS-based load balancing.

Command-Line Usage

Run equivalent checks directly from your terminal on macOS, Windows, or Linux.

🍎 macOS

# Full DNS record lookup
dig A example.com
# Query all record types
dig ANY example.com
# Use specific DNS server
dig @1.1.1.1 A example.com +short
# IPv6 AAAA record
dig AAAA example.com

🪟 Windows (PowerShell / CMD)

# Windows nslookup for A records
nslookup example.com 8.8.8.8
# PowerShell DNS lookup
Resolve-DnsName -Name example.com -Type A
# IPv6 lookup
Resolve-DnsName -Name example.com -Type AAAA

🐧 Linux

# Full DNS lookup with dig
dig A example.com
# Short IP output only
dig +short A example.com
# host command
host example.com
# Using getent
getent ahosts example.com

Input Parameters

Enter a domain name without http:// or www

Tool Status: Ready

Developer

API & CLI Usage

API Endpoint

POST /api/tools/dns-lookup

Platform-Specific Examples

Bash (curl)
curl -X POST https://epcybertools.com/api/tools/dns-lookup \
  -H "Content-Type: application/json" \
  -d '{"domain":"google.com"}'
wget
wget --method=POST \
  --header="Content-Type: application/json" \
  --body-data='{"domain":"google.com"}' \
  -O - https://epcybertools.com/api/tools/dns-lookup
HTTPie (apt install httpie)
http POST https://epcybertools.com/api/tools/dns-lookup \
  domain="google.com"
View full API documentation →