GET - GET a specific NS Record by ID

Purpose

This API retrieves a specific NS (Name Server) record under a DNS zone. NS records define the authoritative name servers responsible for resolving queries for the domain. This API provides real-time visibility into NS records, ensuring domain reliability, redundancy, and proper resolution.

Request URL

Method: GET

https://{appconsole_IP}:{9443}/api/dhcp/zone/{zone_pk}/NS/{pk}/

Request Headers

The following headers must be included in the API request for successful authentication and data submission:

Authorization: DDI Central's OAuth implementation uses the Bearer authentication scheme. Hence, while making API calls, access_token obtained via the OAuth 2.0 Client Credentials Grant must be included in the Authorization header of API requests. This token verifies the client’s identity and ensures appropriate permissions for accessing resources.

The Authorization Header follows the format below:

headers = { "Authorization": "Bearer {bearer_tk}" }


Content-Type: Required in the header to indicate the media type of the resource being sent. It helps the server at the receiving end understand how to process the transmitted request body.

The Content-Type Header follows the format below:

headers ={ "Content-Type": "application/json" }

Path Parameters

  • zone_pk* long
    • The unique identifier of the DNS zone where the NS record exists.
    • Example: 5867.
  • pk* long
    • The unique identifier of the specific NS record to retrieve.
    • Example: 10805.

 

- Mandatory parameter.

 

Sample Response

Copied
{
   "ns_domain_id":6460,
   "zone_id":5867,
   "domain_name":"ns2.hellotest109.com.",
   "domain_ttl":86400,
   "records":[
      {
         "record_id":7073,
         "host_fqdn":"c1.host3.com.",
         "domain_id":6460
      },
      {
         "record_id":7074,
         "host_fqdn":"c2.host4.com.",
         "domain_id":6460
      },
      {
         "record_id":7075,
         "host_fqdn":"c3.host4.com.",
         "domain_id":6460
      }
   ]
}