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
andsubscription_id
parameters should be passed to the method.
The method has the following input parameters:
Name |
Type |
Short Description |
---|---|---|
|
string |
Name of the Domain or Domain Request to return DNS Servers for. |
|
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 |
---|---|---|
|
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: