Queries the current list of name servers for a domain name and determines whether the servers are managed by Alibaba Cloud DNS.
Operation description
This operation directly queries the authoritative server of the domain name registry to retrieve the DNS server names for the domain name. An error may be returned if the domain name is inactive. For example, if the domain name has a serverHold or clientHold status, or has not passed identity verification.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alidns:DescribeDomainNs |
get |
*domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the request and response. Valid values: zh: Chinese Default value: zh. |
en |
| DomainName |
string |
Yes |
The domain name. You can call the DescribeDomains operation to obtain this value. |
example.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AllAliDns |
boolean |
Indicates whether all name servers are Alibaba Cloud DNS servers. |
true |
| RequestId |
string |
The unique request ID. |
16C7DC7A-2FA7-4D14-8B12-88A2BB6373DB |
| ExpectDnsServers |
object |
||
| ExpectDnsServer |
array |
The name servers assigned to the domain name by Alibaba Cloud DNS. |
|
|
string |
The name server assigned to the domain name by Alibaba Cloud DNS. |
x1.alidns.com,x2.alidns.com |
|
| DnsServers |
object |
||
| DnsServer |
array |
The name servers that are currently configured for the domain name. |
|
|
string |
The name server that is currently configured for the domain name. |
vip1.alidns.com,vip2.alidns.com |
|
| IncludeAliDns |
boolean |
Indicates whether the list of name servers includes Alibaba Cloud DNS servers. |
true |
| DetectFailedReasonCode |
string |
The error code returned if the detection fails. |
DnsCheck.Failed |
Examples
Success response
JSON format
{
"AllAliDns": true,
"RequestId": "16C7DC7A-2FA7-4D14-8B12-88A2BB6373DB",
"ExpectDnsServers": {
"ExpectDnsServer": [
"x1.alidns.com,x2.alidns.com"
]
},
"DnsServers": {
"DnsServer": [
"vip1.alidns.com,vip2.alidns.com"
]
},
"IncludeAliDns": true,
"DetectFailedReasonCode": "DnsCheck.Failed"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.