Jamie Software Lab
JavaScript Networking DNS

DNS Lookup

Type any domain and get A, AAAA, MX, CNAME, TXT, and NS records back instantly. Runs entirely in the browser using Google's DNS-over-HTTPS API : no backend, no installs.

BackendNone : browser only
DNS providerGoogle DoH
Record types6 (A, AAAA, MX, CNAME, TXT, NS)
DependenciesNone

Live Demo

Enter a domain and select record types to query.

Try:

Enter a domain above and click Lookup

How it works

Input
User types a domain and selects record types
DoH query
fetch() calls Google's dns.google/resolve for each type
Parse JSON
Responses are standard JSON : no DNS parsing needed
Render
Records grouped by type in a scrollable table

Decisions

Google DoH over Cloudflare

Both support CORS. Google's dns.google/resolve returns clean JSON with a simple query parameter. Cloudflare needs an Accept header which some browser configs handle differently.

No backend

DNS-over-HTTPS is a public API with CORS support. Running a backend proxy would add latency and a server dependency for zero benefit.

Parallel queries

All selected record types fire simultaneously with Promise.all. Six queries still complete in under 200ms for most domains.

Toggle record types

Querying all 6 types every time adds noise. Toggling lets users focus on what they need : useful when debugging MX records specifically.