• Domain Name Service

dns
  1. Help Center
  2. Domain Name Service
  3. API Reference
  4. API Description
  5. Private Zone Management
  6. Querying Name Servers in a Private Zone

Querying Name Servers in a Private Zone

Function

Query name servers in a private zone.

URI

GET /v2/zones/{zone_id}/nameservers

For details, see Table 1.
Table 1 Parameter in the URI

Parameter

Mandatory

Type

Description

zone_id

Yes

string

Zone ID

Request

None

Response

  • Parameter description
    Table 2 Parameter in the response

    Parameter

    Type

    Description

    nameservers

    List data structure

    Name server list object

    For details, see Table 3.

    Table 3 Description of the nameservers field

    Parameter

    Type

    Description

    address

    string

    IP address of a DNS server

    priority

    int

    Priority of a name server

    For example, if the priority of a DNS server is 1, it is used to resolve domain names in first priority.

  • Example response
    {
        "nameservers": [
            {
                "priority": 1, 
                "address": "100.125.0.81"
            }, 
            {
                "priority": 2, 
                "address": "100.125.0.82"
            }
        ]
    }
    

Returned Value

See General Request Return Code.