DNS Lookup

FREE
By whoisapi
Updated 10 months ago
Tools
8.8/10
Popularity
1089ms
Latency
98%
Success Rate

DNS Lookup API Documentation

Perform DNS (Domain Name Server) through a RESTful API, obtain parsed results in JSON or XML. A domain has a number of records associated with it, a DNS server can be queried to determine the IP address of the primary domain (A record), mail servers (MX records), DNS servers (NS nameservers) and other items such as SPF records (TXT records).

View API Details
GET/whoisserver/DNSService
GET/whoisserver/DNSService
Authorization:

description

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
domainnameSTRING
REQUIREDthe domain for which DNS data are requested
typeSTRING
REQUIREDdns type: A, NS, SOA, MX, etc.; you can specify multiple comma-separated values, e.g., A,SOA,TXT; all records can be retrieved with type=_all
usernameQUERY
REQUIREDusername
passwordQUERY
REQUIREDpassword
Optional Parameters
outputFormatSTRING
OPTIONALXML | JSON (defaults to XML)
callbackSTRING
OPTIONALjavascript function used when outputFormat is JSON; this is an implementation known as JSONP which invokes the callback on the returned response
Code Snippet
Install SDK
Response Body
<?xml version="1.0" encoding="utf-8"?><DNSData>
  <domainName>google.com</domainName>
  <types>
    <int>1</int>
  </types>
  <dnsTypes>A</dnsTypes>
  <audit>
    <createdDate>2017-09-29 07:46:15.593 UTC</createdDate>
    <updatedDate>2017-09-29 07:46:15.593 UTC</updatedDate>
  </audit>
  <dnsRecords>
    <ARecord>
      <type>1</type>
      <dnsType>A</dnsType>
      <name>google.com.</name>
      <ttl>60</ttl>
      <rRsetType>1</rRsetType>
      <rawText>google.com.		60	IN	A	172.217.3.174</rawText>
      <address>172.217.3.174</address>
    </ARecord>
  </dnsRecords>
</DNSData>

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication