pem.getNameServers

This method is supported by Operations starting from version 2.3.

This method returns hostnames of DNS Servers, which host DNS Zone of the Domain or Domain Request specified.

There are the following use cases of method:

  • To retrieve DNS Servers of existing Domain, the domain_name parameter should be passed to the method.
  • To retrieve DNS Servers of Domain Request both the domain_name and subscription_id parameters should be passed to the method.

The method has the following input parameters:

Name

Type

Short Description

domain_name

string

Name of the Domain or Domain Request to return DNS Servers for.

[subscription_id]

int

ID of Subscription. This parameter is optional. It is used for Domain Request's DNS Servers retrieving only.

The method has the following output parameters:

Name

Type

Short Description

N/A

array (string)

Contains hostnames of DNS Servers corresponding the Domain or Domain Request.

Note: This method can also be called under Reseller permissions.

See also:

pem.getDomainNameServers