The Live DNS API allows real-time lookups of DNS resource records such as A, AAAA, MX, NS, CNAME, SOA, TXT, and SPF, and also supports reverse IP lookups using PTR records by specifying the ipAddress parameter. The API uses the type parameter to look up specific DNS records, such as NS, or multiple records separated by commas (e.g., mx,ns). To retrieve all record types, simply set the type parameter to all.
Authorization
You can make authorized requests to our API by passing API key as a query parameter. To get your API key, login to our billing dashboard and get your API key! If your API key has been compromised, you can change it by clicking on reset button in billing dashboard.
Important References
- For details on request limits and handling rate limiting, refer here
- For a complete overview of API credit consumption and usage, refer here
Required
- apiKey
Get your API key from our billing dashboard.
- domainName
The domainName for requested dns data.
- ipAddress
The ipAddress for requested DNS's PTR record.
OR
You can pass both domainName & ipAddress. At least one is required.
- type
Type of DNS record like all/comma separated list (A, AAAA, TXT, NS, MX, SOA, SPF)
Fields Description
queryTime
Timestamp when DNS query was executed
2024-10-03 13:24:09
domainName
Domain name being queried
whoisfreaks.com
ipAddress
IP address associated with the domain lookup
8.8.8.8
dnsTypes
Count of DNS record types available for the domain
A: 1, MX: 15, NS: 2, TXT: 16,
dnsRecords
List of DNS records for the domain across all types
name
Fully qualified domain or reverse lookup name
whoisfreaks.com
type
Numeric DNS record type identifier
1
dnsType
Human-readable DNS record type
A
ttl
Time to live in seconds
3600
rawText
Raw DNS response string
whoisfreaks.com. 3600 IN A 172.233.38.245
address
IP address for A record
172.233.38.245
target
Target hostname for MX record
mx.zoho.com
priority
Priority for MX records
10
admin
SOA administrative contact
support.cloudns.net
host
Primary DNS server in SOA
dns3.cloudns.net
serial
SOA version serial number
2024091202
refresh
SOA refresh interval
7200
retry
SOA retry interval
1800
expire
SOA expiry time
1209600
minimum
Minimum TTL for negative caching
3600
strings
TXT/SPF record values
v=spf1 mx include:spf.mtasv.net -all