DNS Lookup Examples
Worked examples for the DNS lookup: one for each common record type, then several types in one request, then the answers you get for a name without records and for a domain that does not exist.
Every example is a real request with the response the API returned on September 24, 2026. DNS records change, so the same request can return other values today. type takes record type names, comma-separated; each request uses one quota unit, whatever the number of types.
Each requested type gets one entry in responses[]: values holds the parsed records, raw the same answer in zone-file format with each record's TTL, rcode the DNS response code and server the resolver that answered. E-mail addresses inside records are shown as user@<domain>.
- Endpoint
- DNS
20 examples
No examples match these filters.
Record Types
| Example | Param | Value |
|---|---|---|
| A Records of a Domain | domain type | deepinfo. A |
| AAAA Records: IPv6 Addresses | domain type | cloudflare. AAAA |
| MX Records: Mail Servers | domain type | gmail. MX |
| NS Records: Name Servers | domain type | deepinfo. NS |
| TXT Records | domain type | deepinfo. TXT |
| CNAME Record of a Host Name | domain type | www. CNAME |
| SOA Record: Zone Authority | domain type | deepinfo. SOA |
| CAA Records: Allowed Certificate Authorities | domain type | google. CAA |
| SRV Record of a Service | domain type | _imaps._ SRV |
| PTR Record: Reverse DNS | domain type | 8. PTR |
| DMARC Policy in a TXT Record | domain type | _dmarc. TXT |
| DS Record: DNSSEC Delegation | domain type | cloudflare. DS |
| DNSKEY Records: DNSSEC Keys | domain type | cloudflare. DNSKEY |
Several Types in One Request
| Example | Param | Value |
|---|---|---|
| IPv4 and IPv6 Addresses Together | domain type | cloudflare. A,AAAA |
| Mail Setup: MX and TXT | domain type | deepinfo. MX,TXT |
| Five Types at Once | domain type | deepinfo. A,AAAA,MX,NS,TXT |
| A Host Name Behind a CNAME | domain type | www. A,CNAME |
Special Answers
| Example | Param | Value |
|---|---|---|
| A Name Without Records of the Requested Type | domain type | _dmarc. A |
| A Domain That Is Not Registered | domain type | no-such-domain-deepinfo-docs. A |
| Null MX: A Domain That Accepts No Mail | domain type | example. MX |