Loading
Loading
Instant and precise access to DNS records (A, AAAA, MX, NS, SOA, SPF, TXT, CNAME) for any hostname. Designed for DNS troubleshooting, domain management, and network performance optimization.
The DNS Lookup API provides comprehensive DNS intelligence including A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME records. Perfect for DNS troubleshooting, MX validation, domain configuration verification, and network monitoring.
Pass your API key as the apiKey parameter in every request.
This is version v1.0 of the API.
All parameters are passed as query string parameters. At least one of host-name or ipAddress must be provided.
formatoptionalStringdefault: jsonResponse format: 'json' (default) or 'xml'.
host-namerequiredStringHostname or URL whose DNS records required.
ipAddressoptionalStringThe IP address for requested DNS's PTR record.
typerequiredArrayA comma-separated list of DNS record types for lookup. The values can be A, AAAA, MX, NS, SOA, SPF, TXT, CNAME, or all. When ipAddress is provided, type must be "all".
A successful request returns a 200 OK response with a JSON object containing DNS records. The response includes the top-level fields listed below. See the response preview on the right for the full JSON structure.
statusIndicates whether the query was processed successfully (true or false).
queryTimeTime at which the query was made. (Format: YYYY-MM-DD HH:mm:ss)
domainNameQueried domain.
domainRegisteredIndicates whether the domain is registered (true) or not (false).
dnsTypesMap of DNS record types to the number of records found for each type.
ipAddressThe IP address for requested DNS PTR record. This field is present only when the ipAddress query parameter is provided.
name (String), type (Integer), dnsType (String), ttl (Integer), rawText (String), …
name (String), type (Integer), dnsType (String), ttl (Integer), rawText (String), …
name (String), type (Integer), dnsType (String), ttl (Integer), rawText (String), …
name (String), type (Integer), dnsType (String), ttl (Integer), rawText (String), …
name (String), type (Integer), dnsType (String), ttl (Integer), rawText (String), …
name (String), type (Integer), dnsType (String), ttl (Integer), rawText (String), …
See the HTTP Status Codes documentation for a complete reference of common API errors and HTTP status codes.
please pass correct parameters
Please pass domain param correct value[For Technical Support: support@apifreaks.com]
No Record Found across: <HOSTNAME>
Unable to fetch dns records. Please try after some time. [For Technical Support email at: support@apifreaks.com]