Queries information about a specified domain name.
Operation description
In this example, the domain name is bound to an instance of Alibaba Cloud DNS Ultimate Edition. For more information about line enumeration, see the RecordLines response parameter.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alidns:DescribeDomainInfo |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response. Valid values:
Default value: en. |
en |
| DomainName |
string |
Yes |
The domain name. Call DescribeDomains to obtain the domain name. |
example.com |
| NeedDetailAttributes |
boolean |
No |
Specifies whether to return detailed attributes of the domain name. Valid values:
The default value is false. If you set this parameter to true, the response includes the following parameters: lineType, minTtl, recordLineTreeJson, recordLines, lineCode, lineDisplayName, lineName, regionLines, and slaveDns. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RecordLineTreeJson |
string |
The list of DNS request source lines in a tree structure. |
{"default":{},"unicom":{},"telecom":{},"mobile":{},"edu":{},"oversea":{},"baidu":{},"biying":{},"google":{}} |
| GroupName |
string |
The name of the domain name group. |
mygroup |
| InBlackHole |
boolean |
Indicates whether blackhole filtering is activated for the domain name. |
false |
| RegionLines |
boolean |
Indicates whether the line is a regional line. |
false |
| SlaveDns |
boolean |
Indicates whether secondary DNS is supported. |
true |
| AliDomain |
boolean |
Indicates whether the domain name was registered with Alibaba Cloud. |
true |
| RequestId |
string |
The unique request ID. |
536E9CAD-DB30-4647-AC87-AA5CC38C5382 |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-aek3dj3****** |
| InstanceId |
string |
The ID of the Alibaba Cloud DNS instance. |
i-7** |
| DomainName |
string |
The domain name. |
example.com |
| CreateTime |
string |
The time when the domain name was created. |
2015-12-12T09:23Z |
| PunyCode |
string |
The Punycode for the Chinese domain name. |
example.com |
| DnsServers |
object |
||
| DnsServer |
array |
The list of DNS servers for the domain name. |
|
|
string |
A string that contains an array of DNS servers. |
["vip3.alidns.com", "vip4.alidns.com"] |
|
| Remark |
string |
The remarks. |
remark |
| GroupId |
string |
The ID of the domain name group. |
2*** |
| VersionCode |
string |
The edition ID of Alibaba Cloud DNS. Valid values:
|
mianfei |
| RecordLines |
object |
||
| RecordLine |
array<object> |
The list of DNS request source lines. |
|
|
object |
|||
| FatherCode |
string |
The code of the parent line. This parameter is empty if no parent line exists. |
internal |
| LineDisplayName |
string |
The display name of the parent line. |
中国地区_西北 |
| LineCode |
string |
The code of the child line. |
cn_region_xibei |
| LineName |
string |
The display name of the child line. |
西北 |
| DomainId |
string |
The ID of the domain name. |
00efd71a-7************ |
| AvailableTtls |
object |
||
| AvailableTtl |
array |
The list of available Time to Live (TTL) values for the domain name. This parameter is not returned by default. To return this parameter, set NeedDetailAttributes to true. |
|
|
string |
A string that contains an array of available TTL values. |
[600,1800,3600,43200,86400] |
|
| MinTtl |
integer |
The minimum TTL. |
1 |
| InClean |
boolean |
Indicates whether the domain name is being scrubbed. |
false |
| VersionName |
string |
The name of the Alibaba Cloud DNS edition. |
企业旗舰版 |
| LineType |
string |
The type of the DNS request source line. |
region_province |
| SubDomain |
boolean |
Indicates whether the queried domain is a hosted subdomain. Valid values:
|
false |
| DomainLoggingSwitchStatus |
string |
The status of the logging feature. |
CLOSE:关闭状态 OPEN:开启状态 |
Examples
Success response
JSON format
{
"RecordLineTreeJson": "{\"default\":{},\"unicom\":{},\"telecom\":{},\"mobile\":{},\"edu\":{},\"oversea\":{},\"baidu\":{},\"biying\":{},\"google\":{}}",
"GroupName": "mygroup",
"InBlackHole": false,
"RegionLines": false,
"SlaveDns": true,
"AliDomain": true,
"RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
"ResourceGroupId": "rg-aek3dj3******",
"InstanceId": "i-7**",
"DomainName": "example.com",
"CreateTime": "2015-12-12T09:23Z",
"PunyCode": "example.com",
"DnsServers": {
"DnsServer": [
"[\"vip3.alidns.com\", \"vip4.alidns.com\"]"
]
},
"Remark": "remark",
"GroupId": "2***",
"VersionCode": "mianfei",
"RecordLines": {
"RecordLine": [
{
"FatherCode": "internal",
"LineDisplayName": "中国地区_西北",
"LineCode": "cn_region_xibei",
"LineName": "西北"
}
]
},
"DomainId": "00efd71a-7************",
"AvailableTtls": {
"AvailableTtl": [
"[600,1800,3600,43200,86400]"
]
},
"MinTtl": 1,
"InClean": false,
"VersionName": "企业旗舰版",
"LineType": "region_province",
"SubDomain": false,
"DomainLoggingSwitchStatus": "CLOSE:关闭状态\nOPEN:开启状态"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.