DNS Lookup
Domain Intelligence and AnalysisDNS Lookup API — live DNS records for a hostname, resolved at request time rather than served from a cache. Supports A, AAAA, MX, NS, SOA, TXT, SPF and CNAME; omit record_type to fetch every type in one call. Every record is returned in the same flat shape — name, type, ttl, value, priority, raw — so you never branch on record type to read the answer. priority is populated for MX records and 0 elsewhere; raw carries the original zone-file line.
🌍 Global — Available worldwide
What DNS Lookup Is Used For
Migration verification
Confirm A, AAAA, CNAME and NS records resolved as expected after a cutover, at request time rather than from a cache.
Mail deliverability checks
Read MX, TXT and SPF records to diagnose why mail to a domain is failing.
Monitoring and alerting
Watch a record for an unexpected change that signals a hijack or a misconfiguration.
One call for every type
Omit record_type to fetch all record types in a single billable request, in one flat shape.
Quick Start
1. Copy your API key from Dashboard → API Keys
2. Send a POST request to /api/v1/domain/dns
3. Pass the key as Authorization: Bearer <key>
4. Read the result from the data object in the JSON response
cURL
curl -X POST https://app.way2api.com/api/v1/domain/dns \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain_name":"google.com","record_type":"all"}'