DNS Lookup API - Live DNS Records, TTLs & PTR Lookups for Any Hostname
A DNS change that hasn't propagated, an MX record pointing at a dead mail server, a hostname that resolves for some users and not others - these are the failures you only catch by querying live records, not cached ones. The DNS Lookup API queries DNS in real time and returns the current records for any hostname, URL, or IP address. One call returns A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME records - each with its TTL, parsed values, and the raw zone-file line - or PTR data when you start from an IP. It's built for network engineers automating DNS monitoring, developers verifying domain configuration in CI pipelines, and security teams enriching infrastructure data. Start with 10,000 free credits - no credit card required.
What You Get in Every Response
Eight Record Types in One Call
Every lookup queries live DNS and returns a dnsRecords array covering A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME types. Each record carries its dnsType, numeric type code, and ttl, so you can see exactly how long resolvers will cache each answer.
Use it as a DNS checker API in uptime monitors and configuration audits where cached answers would hide the problem.
Targeted Record Filtering
The type parameter accepts a single record type, a comma-separated list (type=a,aaaa,mx), or all. Requesting only the types you need keeps responses small and parsing simple.
Use it to build focused checks - an MX-only probe for mail verification, or an A/AAAA pair check before a cutover - without discarding unwanted records client-side.
Parsed Fields for Every Record Type
Records arrive parsed into typed fields, not just strings: address for A and AAAA, target and priority for MX, singleName for NS, strings for TXT and SPF, and full SOA timers (serial, refresh, retry, expire, minimum). Each record also includes rawText - the dig-style zone-file line - so you can log or diff the exact answer the resolver returned.
Use it to audit record values programmatically without writing a parser for each type.
PTR Lookups from an IP Address
Pass the ipAddress parameter instead of a hostname to retrieve the PTR record for any IPv4 or IPv6 address in the same endpoint.
Use it to confirm forward and reverse DNS agree - a standard check for mail-server deliverability and for validating that infrastructure hostnames match their addresses.
Registration Status and Response Metadata
Every response includes a domainRegistered flag, a queryTime timestamp, and a dnsTypes map of the record types found. The flag distinguishes an unregistered domain from a registered one with missing records - two very different problems. Responses are JSON by default or XML via the format parameter.
Use it to differentiate domain registration issues from DNS configuration issues at a glance.
Built for These Use Cases
Verify DNS changes after deployment
Push a record change, then poll the live answer until the new value and expected TTL appear. Because lookups hit DNS in real time rather than a cache, your CI job can confirm a cutover actually propagated before the pipeline proceeds.
Monitor mail configuration
Schedule mail-record checks for the domains you operate and alert when a mail route or sender policy changes unexpectedly. Pair current answers with the Historical DNS Lookup API to see when a record changed and what it pointed to before.
Enrich security and infrastructure data
Turn a hostname from a log line into its current addresses, name servers, and mail routes as a DNS query API step in your enrichment pipeline. To go the other direction - from an address block back to hostnames - use the Reverse DNS Lookup API.
Audit domain portfolios
Use it as a DNS records API to sweep the domains you manage for missing sender-policy records, lingering records that point at decommissioned hosts, and name-server drift. For sweeps across hundreds of hostnames, the Bulk DNS Lookup API runs the same lookup for up to 100 hostnames per request.
API Endpoint
$ pip install requestsimport requests
url = "https://api.apifreaks.com/v1.0/domain/dns/live?host-name=google.com&type=all"
payload = {}
headers = {
'X-apiKey': 'API-KEY'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
How to Guides
Look Up All DNS Records for a Hostname
When a domain misbehaves and you don't yet know which record is wrong, pull everything in one call and inspect the full picture. Set type to all and pass the hostname in host-name - the response returns every A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME record with its TTL.
# Response { "status": true, "queryTime": "2026-07-10 10:25:29", "domainName": "google.com", "domainRegistered": true, "dnsTypes": { "A": 1, "NS": 2, "SOA": 6, "MX": 15, "TXT": 16, "AAAA": 28, "SPF": 99 }, "dnsRecords": [ { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 161, "rawText": "google.com.\t\t161\tIN\tA\t142.250.27.113", "rRsetType": 1, "address": "142.250.27.113" }, { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 161, "rawText": "google.com.\t\t161\tIN\tA\t142.250.27.100", "rRsetType": 1, "address": "142.250.27.100" }, { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 161, "rawText": "google.com.\t\t161\tIN\tA\t142.250.27.101", "rRsetType": 1, "address": "142.250.27.101" }, { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 161, "rawText": "google.com.\t\t161\tIN\tA\t142.250.27.102", "rRsetType": 1, "address": "142.250.27.102" }, { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 161, "rawText": "google.com.\t\t161\tIN\tA\t142.250.27.138", "rRsetType": 1, "address": "142.250.27.138" }, { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 161, "rawText": "google.com.\t\t161\tIN\tA\t142.250.27.139", "rRsetType": 1, "address": "142.250.27.139" }, { "name": "google.com", "type": 2, "dnsType": "NS", "ttl": 10484, "rawText": "google.com.\t\t10484\tIN\tNS\tns3.google.com.", "rRsetType": 2, "singleName": "ns3.google.com." }, { "name": "google.com", "type": 2, "dnsType": "NS", "ttl": 10484, "rawText": "google.com.\t\t10484\tIN\tNS\tns4.google.com.", "rRsetType": 2, "singleName": "ns4.google.com." }, { "name": "google.com", "type": 2, "dnsType": "NS", "ttl": 10484, "rawText": "google.com.\t\t10484\tIN\tNS\tns2.google.com.", "rRsetType": 2, "singleName": "ns2.google.com." }, { "name": "google.com", "type": 2, "dnsType": "NS", "ttl": 10484, "rawText": "google.com.\t\t10484\tIN\tNS\tns1.google.com.", "rRsetType": 2, "singleName": "ns1.google.com." }, { "name": "google.com", "type": 6, "dnsType": "SOA", "ttl": 1, "rawText": "google.com.\t\t1\tIN\tSOA\tns1.google.com. dns-admin.google.com. 945013456 900 900 1800 60", "rRsetType": 6, "admin": "dns-admin.google.com.", "host": "ns1.google.com.", "expire": 1800, "minimum": 60, "refresh": 900, "retry": 900, "serial": 945013456 }, { "name": "google.com", "type": 15, "dnsType": "MX", "ttl": 124, "rawText": "google.com.\t\t124\tIN\tMX\t10 smtp.google.com.", "rRsetType": 15, "target": "smtp.google.com.", "priority": 10 }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"onetrust-domain-verification=6d685f1d41a94696ad7ef771f68993e0\"", "rRsetType": 16, "strings": [ "onetrust-domain-verification=6d685f1d41a94696ad7ef771f68993e0" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"google-site-verification=TV9-DBe4R80X4v0M4U_bd_J9cpOJM0nikft0jAgjmsQ\"", "rRsetType": 16, "strings": [ "google-site-verification=TV9-DBe4R80X4v0M4U_bd_J9cpOJM0nikft0jAgjmsQ" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"onetrust-domain-verification=0d477fe608074e6f9c12bca7826035cc\"", "rRsetType": 16, "strings": [ "onetrust-domain-verification=0d477fe608074e6f9c12bca7826035cc" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"MS=E4A68B9AB2BB9670BCE15412F62916164C0B20BB\"", "rRsetType": 16, "strings": [ "MS=E4A68B9AB2BB9670BCE15412F62916164C0B20BB" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"docusign=05958488-4752-4ef2-95eb-aa7ba8a3bd0e\"", "rRsetType": 16, "strings": [ "docusign=05958488-4752-4ef2-95eb-aa7ba8a3bd0e" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"google-site-verification=4ibFUgB-wXLQ_S7vsXVomSTVamuOXBiVAzpR5IZ87D0\"", "rRsetType": 16, "strings": [ "google-site-verification=4ibFUgB-wXLQ_S7vsXVomSTVamuOXBiVAzpR5IZ87D0" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"cisco-ci-domain-verification=47c38bc8c4b74b7233e9053220c1bbe76bcc1cd33c7acf7acd36cd6a5332004b\"", "rRsetType": 16, "strings": [ "cisco-ci-domain-verification=47c38bc8c4b74b7233e9053220c1bbe76bcc1cd33c7acf7acd36cd6a5332004b" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"Z29vZ2xl\"", "rRsetType": 16, "strings": [ "Z29vZ2xl" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"facebook-domain-verification=22rm551cu4k0ab0bxsw536tlds4h95\"", "rRsetType": 16, "strings": [ "facebook-domain-verification=22rm551cu4k0ab0bxsw536tlds4h95" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"docusign=1b0a6754-49b1-4db5-8540-d2c12664b289\"", "rRsetType": 16, "strings": [ "docusign=1b0a6754-49b1-4db5-8540-d2c12664b289" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"globalsign-smime-dv=CDYX+XFHUw2wml6/Gb8+59BsH31KzUr6c1l2BPvqKX8=\"", "rRsetType": 16, "strings": [ "globalsign-smime-dv=CDYX+XFHUw2wml6/Gb8+59BsH31KzUr6c1l2BPvqKX8=" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"apple-domain-verification=30afIBcvSuDV2PLX\"", "rRsetType": 16, "strings": [ "apple-domain-verification=30afIBcvSuDV2PLX" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"google-site-verification=wD8N7i1JTNTkezJ49swvWW48f8_9xveREV4oB-0Hf5o\"", "rRsetType": 16, "strings": [ "google-site-verification=wD8N7i1JTNTkezJ49swvWW48f8_9xveREV4oB-0Hf5o" ] }, { "name": "google.com", "type": 28, "dnsType": "AAAA", "ttl": 138, "rawText": "google.com.\t\t138\tIN\tAAAA\t2a00:1450:4025:401:0:0:0:8b", "rRsetType": 28, "address": "2a00:1450:4025:401:0:0:0:8b" }, { "name": "google.com", "type": 28, "dnsType": "AAAA", "ttl": 138, "rawText": "google.com.\t\t138\tIN\tAAAA\t2a00:1450:4025:401:0:0:0:71", "rRsetType": 28, "address": "2a00:1450:4025:401:0:0:0:71" }, { "name": "google.com", "type": 28, "dnsType": "AAAA", "ttl": 138, "rawText": "google.com.\t\t138\tIN\tAAAA\t2a00:1450:4025:401:0:0:0:65", "rRsetType": 28, "address": "2a00:1450:4025:401:0:0:0:65" }, { "name": "google.com", "type": 28, "dnsType": "AAAA", "ttl": 138, "rawText": "google.com.\t\t138\tIN\tAAAA\t2a00:1450:4025:401:0:0:0:66", "rRsetType": 28, "address": "2a00:1450:4025:401:0:0:0:66" }, { "name": "google.com", "type": 99, "dnsType": "SPF", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tSPF\t\"v=spf1 include:_spf.google.com ~all\"", "rRsetType": 99, "strings": [ "v=spf1 include:_spf.google.com ~all" ] } ] }curl -X 'GET' 'https://api.apifreaks.com/v1.0/domain/dns/live?host-name=google.com&type=all&apiKey=API-KEY'
Look Up Specific DNS Records
A monitoring probe shouldn't parse records it doesn't care about. Pass a comma-separated list in type to get only what the check needs - for example a,aaaa,mx before a migration to confirm both address families and mail routing in a single response.
# Get A, AAAA, and MX records only# Response { "status": true, "queryTime": "2026-07-10 10:25:30", "domainName": "google.com", "domainRegistered": true, "dnsTypes": { "A": 1, "AAAA": 28, "MX": 15 }, "dnsRecords": [ { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 48, "rawText": "google.com.\t\t48\tIN\tA\t142.250.27.113", "rRsetType": 1, "address": "142.250.27.113" }, { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 48, "rawText": "google.com.\t\t48\tIN\tA\t142.250.27.100", "rRsetType": 1, "address": "142.250.27.100" }, { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 48, "rawText": "google.com.\t\t48\tIN\tA\t142.250.27.101", "rRsetType": 1, "address": "142.250.27.101" }, { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 48, "rawText": "google.com.\t\t48\tIN\tA\t142.250.27.102", "rRsetType": 1, "address": "142.250.27.102" }, { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 48, "rawText": "google.com.\t\t48\tIN\tA\t142.250.27.138", "rRsetType": 1, "address": "142.250.27.138" }, { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 48, "rawText": "google.com.\t\t48\tIN\tA\t142.250.27.139", "rRsetType": 1, "address": "142.250.27.139" }, { "name": "google.com", "type": 15, "dnsType": "MX", "ttl": 98, "rawText": "google.com.\t\t98\tIN\tMX\t10 smtp.google.com.", "rRsetType": 15, "target": "smtp.google.com.", "priority": 10 }, { "name": "google.com", "type": 28, "dnsType": "AAAA", "ttl": 211, "rawText": "google.com.\t\t211\tIN\tAAAA\t2a00:1450:4025:402:0:0:0:64", "rRsetType": 28, "address": "2a00:1450:4025:402:0:0:0:64" }, { "name": "google.com", "type": 28, "dnsType": "AAAA", "ttl": 211, "rawText": "google.com.\t\t211\tIN\tAAAA\t2a00:1450:4025:402:0:0:0:66", "rRsetType": 28, "address": "2a00:1450:4025:402:0:0:0:66" }, { "name": "google.com", "type": 28, "dnsType": "AAAA", "ttl": 211, "rawText": "google.com.\t\t211\tIN\tAAAA\t2a00:1450:4025:402:0:0:0:65", "rRsetType": 28, "address": "2a00:1450:4025:402:0:0:0:65" }, { "name": "google.com", "type": 28, "dnsType": "AAAA", "ttl": 211, "rawText": "google.com.\t\t211\tIN\tAAAA\t2a00:1450:4025:402:0:0:0:8b", "rRsetType": 28, "address": "2a00:1450:4025:402:0:0:0:8b" } ] }curl -X 'GET' 'https://api.apifreaks.com/v1.0/domain/dns/live?host-name=google.com&type=a%2Caaaa%2Cmx&apiKey=API-KEY'
MX Lookup API
Before a mail campaign goes out or a new domain is onboarded, confirm its mail exchangers actually resolve. Set type to mx - each returned record carries the exchange hostname in target and its priority, so you can verify routing order, not just existence.
# Get MX Records only# Response { "status": true, "queryTime": "2026-07-10 10:25:30", "domainName": "google.com", "domainRegistered": true, "dnsTypes": { "MX": 15 }, "dnsRecords": [ { "name": "google.com", "type": 15, "dnsType": "MX", "ttl": 123, "rawText": "google.com.\t\t123\tIN\tMX\t10 smtp.google.com.", "rRsetType": 15, "target": "smtp.google.com.", "priority": 10 } ] }curl -X 'GET' 'https://api.apifreaks.com/v1.0/domain/dns/live?host-name=google.com&type=mx&apiKey=API-KEY'
Get the PTR Record for an IP Address
Mail servers whose IP doesn't reverse-resolve to a matching hostname get flagged or rejected. Pass the address in ipAddress with type=all to retrieve its PTR record, then compare it against the hostname's forward A record to confirm the pair agrees.
# Get PTR record for IP address# Response { "status": true, "queryTime": "2026-07-10 10:25:31", "ipAddress": "8.8.8.8", "dnsTypes": { "PTR": 12 }, "dnsRecords": [ { "name": "8.8.8.8.in-addr.arpa", "type": 12, "dnsType": "PTR", "ttl": 17290, "rawText": "8.8.8.8.in-addr.arpa.\t17290\tIN\tPTR\tdns.google.", "rRsetType": 12, "singleName": "dns.google." } ] }curl -X 'GET' 'https://api.apifreaks.com/v1.0/domain/dns/live?ipAddress=8.8.8.8&type=all&apiKey=API-KEY'
Look Up DNS Records from a URL
Log lines, crawl results, and pasted tickets hand you full URLs, not clean hostnames. Pass the URL directly in host-name - the API extracts the hostname itself, so you skip the parsing step entirely.
# Get DNS records by URL# Response { "status": true, "queryTime": "2026-07-10 10:25:32", "domainName": "https://google.com", "domainRegistered": true, "dnsTypes": { "A": 1, "NS": 2, "SOA": 6, "MX": 15, "TXT": 16, "AAAA": 28, "SPF": 99 }, "dnsRecords": [ { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 250, "rawText": "google.com.\t\t250\tIN\tA\t142.250.102.138", "rRsetType": 1, "address": "142.250.102.138" }, { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 250, "rawText": "google.com.\t\t250\tIN\tA\t142.250.102.139", "rRsetType": 1, "address": "142.250.102.139" }, { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 250, "rawText": "google.com.\t\t250\tIN\tA\t142.250.102.101", "rRsetType": 1, "address": "142.250.102.101" }, { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 250, "rawText": "google.com.\t\t250\tIN\tA\t142.250.102.102", "rRsetType": 1, "address": "142.250.102.102" }, { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 250, "rawText": "google.com.\t\t250\tIN\tA\t142.250.102.100", "rRsetType": 1, "address": "142.250.102.100" }, { "name": "google.com", "type": 1, "dnsType": "A", "ttl": 250, "rawText": "google.com.\t\t250\tIN\tA\t142.250.102.113", "rRsetType": 1, "address": "142.250.102.113" }, { "name": "google.com", "type": 2, "dnsType": "NS", "ttl": 7231, "rawText": "google.com.\t\t7231\tIN\tNS\tns3.google.com.", "rRsetType": 2, "singleName": "ns3.google.com." }, { "name": "google.com", "type": 2, "dnsType": "NS", "ttl": 7231, "rawText": "google.com.\t\t7231\tIN\tNS\tns4.google.com.", "rRsetType": 2, "singleName": "ns4.google.com." }, { "name": "google.com", "type": 2, "dnsType": "NS", "ttl": 7231, "rawText": "google.com.\t\t7231\tIN\tNS\tns2.google.com.", "rRsetType": 2, "singleName": "ns2.google.com." }, { "name": "google.com", "type": 2, "dnsType": "NS", "ttl": 7231, "rawText": "google.com.\t\t7231\tIN\tNS\tns1.google.com.", "rRsetType": 2, "singleName": "ns1.google.com." }, { "name": "google.com", "type": 6, "dnsType": "SOA", "ttl": 27, "rawText": "google.com.\t\t27\tIN\tSOA\tns1.google.com. dns-admin.google.com. 945013456 900 900 1800 60", "rRsetType": 6, "admin": "dns-admin.google.com.", "host": "ns1.google.com.", "expire": 1800, "minimum": 60, "refresh": 900, "retry": 900, "serial": 945013456 }, { "name": "google.com", "type": 15, "dnsType": "MX", "ttl": 59, "rawText": "google.com.\t\t59\tIN\tMX\t10 smtp.google.com.", "rRsetType": 15, "target": "smtp.google.com.", "priority": 10 }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"onetrust-domain-verification=6d685f1d41a94696ad7ef771f68993e0\"", "rRsetType": 16, "strings": [ "onetrust-domain-verification=6d685f1d41a94696ad7ef771f68993e0" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"onetrust-domain-verification=0d477fe608074e6f9c12bca7826035cc\"", "rRsetType": 16, "strings": [ "onetrust-domain-verification=0d477fe608074e6f9c12bca7826035cc" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"google-site-verification=TV9-DBe4R80X4v0M4U_bd_J9cpOJM0nikft0jAgjmsQ\"", "rRsetType": 16, "strings": [ "google-site-verification=TV9-DBe4R80X4v0M4U_bd_J9cpOJM0nikft0jAgjmsQ" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"MS=E4A68B9AB2BB9670BCE15412F62916164C0B20BB\"", "rRsetType": 16, "strings": [ "MS=E4A68B9AB2BB9670BCE15412F62916164C0B20BB" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"docusign=05958488-4752-4ef2-95eb-aa7ba8a3bd0e\"", "rRsetType": 16, "strings": [ "docusign=05958488-4752-4ef2-95eb-aa7ba8a3bd0e" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"google-site-verification=4ibFUgB-wXLQ_S7vsXVomSTVamuOXBiVAzpR5IZ87D0\"", "rRsetType": 16, "strings": [ "google-site-verification=4ibFUgB-wXLQ_S7vsXVomSTVamuOXBiVAzpR5IZ87D0" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"cisco-ci-domain-verification=47c38bc8c4b74b7233e9053220c1bbe76bcc1cd33c7acf7acd36cd6a5332004b\"", "rRsetType": 16, "strings": [ "cisco-ci-domain-verification=47c38bc8c4b74b7233e9053220c1bbe76bcc1cd33c7acf7acd36cd6a5332004b" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"Z29vZ2xl\"", "rRsetType": 16, "strings": [ "Z29vZ2xl" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"facebook-domain-verification=22rm551cu4k0ab0bxsw536tlds4h95\"", "rRsetType": 16, "strings": [ "facebook-domain-verification=22rm551cu4k0ab0bxsw536tlds4h95" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"docusign=1b0a6754-49b1-4db5-8540-d2c12664b289\"", "rRsetType": 16, "strings": [ "docusign=1b0a6754-49b1-4db5-8540-d2c12664b289" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"apple-domain-verification=30afIBcvSuDV2PLX\"", "rRsetType": 16, "strings": [ "apple-domain-verification=30afIBcvSuDV2PLX" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"globalsign-smime-dv=CDYX+XFHUw2wml6/Gb8+59BsH31KzUr6c1l2BPvqKX8=\"", "rRsetType": 16, "strings": [ "globalsign-smime-dv=CDYX+XFHUw2wml6/Gb8+59BsH31KzUr6c1l2BPvqKX8=" ] }, { "name": "google.com", "type": 16, "dnsType": "TXT", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tTXT\t\"google-site-verification=wD8N7i1JTNTkezJ49swvWW48f8_9xveREV4oB-0Hf5o\"", "rRsetType": 16, "strings": [ "google-site-verification=wD8N7i1JTNTkezJ49swvWW48f8_9xveREV4oB-0Hf5o" ] }, { "name": "google.com", "type": 28, "dnsType": "AAAA", "ttl": 96, "rawText": "google.com.\t\t96\tIN\tAAAA\t2a00:1450:4025:402:0:0:0:64", "rRsetType": 28, "address": "2a00:1450:4025:402:0:0:0:64" }, { "name": "google.com", "type": 28, "dnsType": "AAAA", "ttl": 96, "rawText": "google.com.\t\t96\tIN\tAAAA\t2a00:1450:4025:402:0:0:0:66", "rRsetType": 28, "address": "2a00:1450:4025:402:0:0:0:66" }, { "name": "google.com", "type": 28, "dnsType": "AAAA", "ttl": 96, "rawText": "google.com.\t\t96\tIN\tAAAA\t2a00:1450:4025:402:0:0:0:71", "rRsetType": 28, "address": "2a00:1450:4025:402:0:0:0:71" }, { "name": "google.com", "type": 28, "dnsType": "AAAA", "ttl": 96, "rawText": "google.com.\t\t96\tIN\tAAAA\t2a00:1450:4025:402:0:0:0:8b", "rRsetType": 28, "address": "2a00:1450:4025:402:0:0:0:8b" }, { "name": "google.com", "type": 99, "dnsType": "SPF", "ttl": 300, "rawText": "google.com.\t\t300\tIN\tSPF\t\"v=spf1 include:_spf.google.com ~all\"", "rRsetType": 99, "strings": [ "v=spf1 include:_spf.google.com ~all" ] } ] }curl -X 'GET' 'https://api.apifreaks.com/v1.0/domain/dns/live?host-name=https%3A%2F%2Fgoogle.com&type=all&apiKey=API-KEY'
Frequently Asked Questions
Pricing
To use the DNS lookup API, API credits are required. Charges apply only for successful queries, indicated by a 2xx status code. If a request results in a 4xx or 5xx status code, no credits will be deducted, and any credits previously charged will be refunded.
For each successful request, 15 credits will be charged for DNS lookup. Utilize the Credits Usage API to efficiently monitor your recent consumption of both one-off and subscription credits. This API provides a streamlined way to track and manage your credit usage, ensuring you stay informed about your remaining balance and can optimize your resource allocation effectively.