pem.getDomainNameServers
This method is supported by Operations starting from version 5.0
This method returns hostnames and IP Addresses 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 returns an array of the following structures:
Name |
Type |
Short Description |
---|---|---|
|
string |
Hostname of DNS Server. |
|
string |
IP Address of DNS Server. |
Note: This method can also be called under Reseller permissions.