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.
Authorize every request with your API key, passed either as a header or as a query parameter:
X-apiKeyapiKeyThis 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: jsonjson (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. When ipAddress is provided, type must be all. Possible values:
AAAAAMXNSSOASPFTXTCNAMEallA 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).
Map of each DNS record type found to its IANA record type code (for example A: 1, MX: 15, NS: 2). It shows which record types were found, not how many records exist for each; count the entries in dnsRecords for that. Omitted when the domain is not registered or no records were found.
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), …
Besides the response body, every response carries custom headers you can use to track credit usage, and concurrency usage on endpoints that enforce a concurrency limit. See the Custom Response Headers documentation and the endpoints with concurrency limits for more details.
X-Concurrent-Threadsheaderconcurrency-limited endpointsSpecifies the maximum number of concurrent requests allowed.
X-Concurrent-Threads-Activeheaderconcurrency-limited endpointsIndicates the number of active concurrent requests being processed.
X-AF-Credits-Costheaderall responsesSpecifies the number of credits consumed by the current request.
See the HTTP Status Codes documentation for a complete reference of common API errors and HTTP status codes.
Please provide correct dns records type(s) [For Technical Support: support@whoisfreaks.com]
Please pass domain param correct value[For Technical Support: support@whoisfreaks.com]
Please provide apiKey
The media type specified in the request is not supported. For more details, please refer to the API documentation.
Unable to fetch dns records. Please try after some time. [For Technical Support email at: support@apifreaks.com]