DNS Lookup
Resolve DNS records (A, AAAA, MX, TXT, CNAME, NS, SOA, SRV, CAA, PTR) for any domain
Parameters
| name | in | type | required | description |
|---|---|---|---|---|
domain |
query | string | required | A domain name, or an IP address (IPv4 or IPv6) for a reverse PTR lookup. Underscore names like _dmarc.example.com work |
type |
query | string | optional |
Leave empty to query A, AAAA, MX, TXT, NS and CNAME
one of
AAAAACNAMEMXNSTXTSOASRVCAAPTR default A
|
Request
Send your key in the X-API-Key header. More languages and patterns live on the
code examples page.
curl -s "https://apixies.io/api/v1/dns-lookup?domain=cloudflare.com" \ -H "X-API-Key: YOUR_API_KEY"
Response
The result sits under data in the standard envelope. See the
response format guide for errors and status codes.
returns
- data.records
- One object per record with type, host, TTL and value fields. MX records are sorted by priority.
- data.record_count
- How many records came back.
- data.exists
- False when the name doesn't exist at all (NXDOMAIN). True when it exists, even without records of this type.
- data.types_queried
- The record types that were looked up.
- data.partial
- True when some record types timed out, listed in timed_out.
{
"status": "success",
"http_code": 200,
"code": "SUCCESS",
"message": "DNS lookup successful",
"data": {
"domain": "cloudflare.com",
"exists": true,
"records": [
{
"type": "A",
"host": "cloudflare.com",
"ttl": 76,
"ip": "104.16.132.229"
},
{
"type": "AAAA",
"host": "cloudflare.com",
"ttl": 106,
"ipv6": "2606:4700::6810:84e5"
},
{
"type": "MX",
"host": "cloudflare.com",
"ttl": 1800,
"priority": 5,
"target": "mxb-canary.global.inbound.cf-emailsecurity.net"
},
{
"type": "NS",
"host": "cloudflare.com",
"ttl": 86400,
"target": "ns4.cloudflare.com"
}
],
"record_count": 4,
"types_queried": [
"A",
"AAAA",
"MX",
"TXT",
"NS",
"CNAME"
],
"timed_out": {
"A": false,
"AAAA": false,
"MX": false,
"TXT": false,
"NS": false,
"CNAME": false
},
"partial": false,
"queried_at": "2026-09-18T12:00:00+00:00"
}
}
Authentication and limits
This endpoint needs an API key. Use the sandbox ("try it" above) to test it without registering. See the authentication guide for details.
Standard rate limits apply to this endpoint.
Common use cases
Domain migration monitoring
Track DNS propagation after migrating domains or changing providers. Monitor A, MX, and CNAME records across multiple domains simultaneously.
Email deliverability auditing
Check MX records and verify DNS configuration for email domains. Combine with Email Auth Validator for complete email infrastructure audits.
Infrastructure monitoring
Continuously verify that your DNS records point to the correct servers. Detect unauthorized DNS changes or hijacking attempts.
related endpoints
guides
More documentation
Get a free API key
A temporary key takes one click and no signup. Register and you get 75 requests/day. Free tier is for development & small projects.