Bulk DNS Lookup API

POST

https://api.apifreaks.com/v1.0/domain/dns/live

format
Format of the Response
typeArrayrequired
A comma-separated list of DNS record types for lookup is required. The values can be A, AAAA, MX, NS, SOA, SPF, TXT, CNAME, or all.

Sample Responses

400
408
LANGUAGE
Python
PHP
Java
Node
Ruby
$ pip install requests
RESPONSE

Click Test it to start the request and see the response here!


API Response

FieldTypeRequirementDescription
bulk_dns_infoArrayMandatory
List of DNS object for each host-name from the request

Each DNS lookup response object includes the following fields:

FieldTypeRequirementDescription
statusBooleanMandatory
Indicates whether the query was processed successfully (true or false).
queryTimeStringMandatory
Time at which the query was made. (Format: YYYY-MM-DD HH:mm:ss)
domainNameStringMandatory
Queried domain.
domainRegisteredBooleanMandatory
Indicates whether the domain is registered (true) or not (false).
dnsTypesObjectMandatory
DNS record types included in the response.
dnsRecordsList<Object>Mandatory
List of DNS records, with different formats depending on the record type.

A and AAAA DNS record object contains following fields:

FieldTypeRequirementDescription
nameStringMandatory
Name of the queried domain.
typeIntegerMandatory
DNS type (e.g., 1 for A, 28 for AAAA).
dnsTypeStringMandatory
DNS type as a string (e.g., "A", "AAAA").
ttlIntegerMandatory
Time to live.
rawTextStringMandatory
Raw (un-parsed) DNS record.
rRsetTypeIntegerMandatory
Indicates the resource record set type.
addressStringMandatory
IPV4 or IPV6 address for A or AAAA records respectively.

CNAME DNS record object contains following fields:

FieldTypeRequirementDescription
nameStringMandatory
Name of the queried domain.
typeIntegerMandatory
DNS type (e.g., 5 for CNAME).
dnsTypeStringMandatory
DNS type as a string (e.g., "CNAME").
ttlIntegerMandatory
Time to live.
rawTextStringMandatory
Raw (un-parsed) DNS record.
rRsetTypeIntegerMandatory
Indicates the resource record set type.
targetStringMandatory
Host to which this domain points.

MX DNS record object contains following fields:

FieldTypeRequirementDescription
nameStringMandatory
Name of the queried domain.
typeIntegerMandatory
DNS type (e.g., 15 for MX).
dnsTypeStringMandatory
DNS type as a string (e.g., "MX").
ttlIntegerMandatory
Time to live.
rawTextStringMandatory
Raw (un-parsed) DNS record.
rRsetTypeIntegerMandatory
Indicates the resource record set type.
targetStringMandatory
Targeted mail service provider.
priorityIntegerMandatory
Priority level associated with the mail server.

NS DNS record object contains following fields:

FieldTypeRequirementDescription
nameStringMandatory
Name of the queried domain.
typeIntegerMandatory
DNS type (e.g., 2 for NS).
dnsTypeStringMandatory
DNS type as a string (e.g., "NS").
ttlIntegerMandatory
Time to live.
rawTextStringMandatory
Raw (un-parsed) DNS record.
rRsetTypeIntegerMandatory
Indicates the resource record set type.
singleNameStringMandatory
Name server for that particular domain.

SOA DNS record object contains following fields:

FieldTypeRequirementDescription
nameStringMandatory
Name of the queried domain.
typeIntegerMandatory
DNS type (e.g., 6 for SOA).
dnsTypeStringMandatory
DNS type as a string (e.g., "SOA").
ttlIntegerMandatory
Time to live.
rawTextStringMandatory
Raw (un-parsed) DNS record.
rRsetTypeIntegerMandatory
Indicates the resource record set type.
adminStringMandatory
Administrative contact email for SOA records.
hostStringMandatory
Primary name server for SOA records.
expireStringMandatory
Expiry time for SOA records.
minimumIntegerMandatory
The minimum TTL for SOA records.
refreshIntegerMandatory
Indicates the refresh interval for SOA records.
retryIntegerMandatory
The retry interval for SOA records.
serialIntegerMandatory
The serial number for SOA records.

SPF and TXT record object contains following fields:

FieldTypeRequirementDescription
nameStringMandatory
Name of the queried domain.
typeIntegerMandatory
DNS type (e.g., 16 for TXT).
dnsTypeStringMandatory
DNS type as a string (e.g., "TXT").
ttlIntegerMandatory
Time to live.
rawTextStringMandatory
Raw (un-parsed) DNS record.
rRsetTypeIntegerMandatory
Indicates the resource record set type.
stringsList<String>Mandatory
List containing the verification strings.