API Freaks logoAPI Freaks logo
CTRL+K

    Documentation

  • Pricing

  • Resources

  • Tools

  • Contact us

CTRL+K
Sign InGet Started For Free
  • Credits Usage APIGET
  • IP Geolocation Lookup APIGET
  • Bulk IP Geolocation LookupPOST
  • Domain WHOIS LookupGET
  • IP WHOIS LookupGET
  • ASN LookupGET
  • Domain WHOIS Historical LookupGET
  • Domain WHOIS Reverse LookupGET
  • Bulk Domain WHOIS LookupPOST
  • DNS LookupGET
  • Historical DNS LookupGET
  • Reverse DNS LookupGET
  • Bulk DNS LookupPOST
  • SSL Certificate LookupGET
  • SSL Certificate Chain LookupGET
  • Domain AvailabilityGET
  • Domain Availability with SuggestionsGET
  • Bulk Domain AvailabilityPOST
  • Website Screenshot APIGET
  • Bulk Screenshot APIPOST
  • Latest Exchange RatesGET
  • Historical Exchange RatesGET
  • Currency Converter LatestGET
  • Currency Converter HistoricalGET
  • Currency Time Series APIGET
  • Currency Fluctuation APIGET
  • Geolocalized Currency ConverterGET
  • Currency SupportedGET
  • Currency SymbolsGET
  • Currency Historical Data LimitsGET
  • Live Commodity PricesGET
  • Historical Commodity Prices APIGET
  • Commodity Fluctuation APIGET
  • Commodity Time Series APIGET
  • Commodity SymbolsGET
  • Timezone LookupGET
  • Timezone ConverterGET
  • GeoDB Countries APIGET
  • GeoDB Country Details APIGET
  • GeoDB Regions APIGET
  • GeoDB Subregions APIGET
  • GeoDB Admin Levels APIGET
  • GeoDB Admin Units APIGET
  • GeoDB Admin Units Details APIGET
  • GeoDB Cities APIGET
  • Zip Code Lookup APIGET
  • ZIP Code Search City APIGET
  • ZIP Code Search Region APIGET
  • ZIP Code Search Radius APIGET
  • ZIP Code Distance APIGET
  • ZIP Code Distance Match APIGET
  • User Agent ParserGET
  • Bulk User Agent ParserPOST
  • Astronomy APIGET

Ready to get started?

Sign Up for Free

APIFreaks

API Catalog

  • Geolocation APIs
  • WHOIS APIs
  • DNS APIs
  • SSL APIs
  • Domain Availability APIs
  • Screenshot APIs
  • Currency APIs
  • Commodity APIs
  • Timezone APIs
  • Zipcode APIs
  • User Agent APIs
  • Other APIs

Tools Catalog

  • Formatters & Beautifiers
  • Converters & Optimizers
  • Viewers & Validators

Docs

  • Documentation
  • Swagger Docs

Pricing & Accounts

  • Pricing
  • Sign up
  • Sign In

Company

  • About Us
  • Resources
  • Terms
  • Privacy

Copyright © 2024

Made in Pakistan

DNS Lookup API

GET

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

format
Format of the Response
host-nameStringrequired
Hostname or URL whose DNS records required
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.
Media Type
JSON
Body

API Keystringrequired
Your private API key. Get it from API Freaks dashboard.

Sample Responses

400
404
408
LANGUAGE
Python
PHP
Java
Node
Ruby
JavaScript
C#
$ pip install requests
RESPONSE

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


API Response

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.