Loading...

Knowledge Base

Search DNS Records Using the API

When you want to search DNS records using the API. This article explains supported DNS record types, available search filters, pagination parameters, and response details for matching DNS records.

Searching DNS Records

Description

Searches records based on the specified criteria.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
domain-nameStringRequiredThe Domain name whose DNS record(s) you want to search
typeStringRequired

Type of record. Values may be:

  • A

  • MX

  • CNAME

  • TXT

  • NS

  • SRV

  • AAAA

no-of-recordsIntegerRequiredNumber of Resource Records to be fetched
page-noIntegerRequiredPage number for which details are to be fetched
hostStringOptionalHostname of the record
valueStringOptionalValue of the record

HTTP Method

GET

Example Test URL Request

https://test.httpapi.com/api/dns/manage/search-records.json?auth-userid=0&api-key=key&domain-name=domain.asia&type=A&no-of-records=10&page-no=1

Response

Returns the details of the DNS records, which match the specified criteria.