开发者社区> 问答> 正文

云解析怎么 获取域名信息



描述


根据传入参数查询指定域名的信息。

请求参数

名称类型是否必须描述
ActionString操作接口名,系统规定参数,取值:DescribeDomainInfo
DomainNameString域名名称


返回参数


公共返回参数,详见 公共返回参数
名称类型描述
RequestIdString唯一请求识别码
DomainIdString域名ID
DomainNameString域名名称
AliDomainBoolean是否为阿里云万网域名
GroupIdString域名分组ID
GroupNameString域名分组名称
InstanceIdString云解析产品ID,如果是免费版则为空
VersionCodeString云解析版本ID
PunyCodeString只针对中文域名返回punycode码
DnsServersDnsServerType域名在解析系统中的DNS列表


错误码


对于所有接口的通用性错误,请参考 错误代码表
错误代码描述HTTP 状态码语义
IncorrectDomainUserThe domain name does not belong to this user.400域名在本账户下不存在
InvalidDomainName.NoExistThe domain is not exist in Alibaba Cloud DNS system.400域名在云解析系统中不存在


示例



请求示例

  1. [backcolor=transparent]http[backcolor=transparent]:[backcolor=transparent]//alidns.aliyuncs.com/?Action=DescribeDomainInfo
  2. [backcolor=transparent]&[backcolor=transparent]DomainName[backcolor=transparent]=[backcolor=transparent]example[backcolor=transparent].[backcolor=transparent]com
  3. [backcolor=transparent]&<公共请求参数>


返回示例



XML格式

  1. [backcolor=transparent]<DescribeDomainInfoResponse>
  2. [backcolor=transparent]    [backcolor=transparent]<RequestId>[backcolor=transparent]536E9CAD-DB30-4647-AC87-AA5CC38C5382[backcolor=transparent]</RequestId>
  3. [backcolor=transparent]    [backcolor=transparent]<DomainId>[backcolor=transparent]00efd71a-770e-4255-b54e-6fe5659baffe[backcolor=transparent]</DomainId>
  4. [backcolor=transparent]    [backcolor=transparent]<DomainName>[backcolor=transparent]example.com[backcolor=transparent]</DomainName>
  5. [backcolor=transparent]    [backcolor=transparent]<AliDomain>[backcolor=transparent]true[backcolor=transparent]</AliDomain>
  6. [backcolor=transparent]    [backcolor=transparent]<GroupId>[backcolor=transparent]2223[backcolor=transparent]</GroupId>
  7. [backcolor=transparent]    [backcolor=transparent]<GroupName>[backcolor=transparent]MyGroup[backcolor=transparent]</GroupName>
  8. [backcolor=transparent]    [backcolor=transparent]<InstanceId>[backcolor=transparent]i-7bg[backcolor=transparent]</InstanceId>
  9. [backcolor=transparent]    [backcolor=transparent]<VersionCode>[backcolor=transparent]version1[backcolor=transparent]</VersionCode>
  10. [backcolor=transparent]    [backcolor=transparent]<PunyCode>[backcolor=transparent]example.com[backcolor=transparent]</PunyCode>
  11. [backcolor=transparent]    [backcolor=transparent]<DnsServers>
  12. [backcolor=transparent]        [backcolor=transparent]<DnsServer>[backcolor=transparent]dns1.hichina.com[backcolor=transparent]</DnsServer>
  13. [backcolor=transparent]        [backcolor=transparent]<DnsServer>[backcolor=transparent]dns2.hichina.com[backcolor=transparent]</DnsServer>
  14. [backcolor=transparent]    [backcolor=transparent]</DnsServers>
  15. [backcolor=transparent]</DescribeDomainInfoResponse>


JSON示例

  1. [backcolor=transparent]{
  2. [backcolor=transparent]    [backcolor=transparent]"RequestId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"536E9CAD-DB30-4647-AC87-AA5CC38C5382"[backcolor=transparent],
  3. [backcolor=transparent]    [backcolor=transparent]"DomainId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"00efd71a-770e-4255-b54e-6fe5659baffe"[backcolor=transparent],
  4. [backcolor=transparent]    [backcolor=transparent]"DomainName"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"example.com"[backcolor=transparent],
  5. [backcolor=transparent]    [backcolor=transparent]"AliDomain"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"true"[backcolor=transparent],
  6. [backcolor=transparent]    [backcolor=transparent]"GroupId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"2223"[backcolor=transparent],
  7. [backcolor=transparent]    [backcolor=transparent]"GroupName"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"MyGroup"[backcolor=transparent],
  8. [backcolor=transparent]    [backcolor=transparent]"InstanceId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"i-7bg"[backcolor=transparent],
  9. [backcolor=transparent]    [backcolor=transparent]"VersionCode"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"version1"[backcolor=transparent],
  10. [backcolor=transparent]    [backcolor=transparent]"PunyCode"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"example.com"[backcolor=transparent],
  11. [backcolor=transparent]    [backcolor=transparent]"DnsServers"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]{
  12. [backcolor=transparent]        [backcolor=transparent]"DnsServer"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent][
  13. [backcolor=transparent]            [backcolor=transparent]"ns1.alidns.com"[backcolor=transparent],
  14. [backcolor=transparent]            [backcolor=transparent]"ns2.alidns.com"
  15. [backcolor=transparent]        [backcolor=transparent]]
  16. [backcolor=transparent]    [backcolor=transparent]}
  17. [backcolor=transparent]}

展开
收起
boxti 2017-10-18 10:22:45 1683 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
神龙云服务器产品及技术深度解析 立即下载
弹性创造价值:基于ECS的最佳性价比实践解析 立即下载
又快又稳:阿里云下一代虚拟交换机解析 立即下载

相关镜像