QueryDomainByDomainName

Updated at:

Queries the information about a domain name by domain name.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

domain:QueryCommonInfo

get

*Domain

acs:domain:*:{#accountId}:domain/{#DomainName}

None None

Request parameters

Parameter

Type

Required

Description

Example

UserClientIp

string

No

The IP address of the user.

127.0.0.1

Lang

string

No

The language of the error message that is returned. Valid values:

  • zh: Chinese.

  • en: English.

Default value: en.

en

DomainName

string

Yes

The domain name.

example.com

Response elements

Element

Type

Description

Example

object

The response parameters.

CnnicPrivacyServiceStatus

string

The status of the privacy protection service for .cn domain names.

UN_SUPPORT

DnsList

object

Dns

array

The list of DNS servers.

string

A DNS server.

dns1.hichina.com,dns2.hichina.com

DomainGroupId

integer

The ID of the domain group. You can obtain the ID by calling the QueryDomainGroupList operation.

123456

DomainGroupName

string

The name of the domain group.

测试分组

DomainName

string

The domain name.

example.com

DomainNameProxyService

boolean

Indicates whether privacy protection is enabled.

false

DomainNameVerificationStatus

string

The status of the domain name review. Valid values:

  • NONAUDIT: Not reviewed.

  • SUCCEED: Successful.

  • FAILED: Failed.

  • AUDITING: In review.

SUCCEED

DomainStatus

string

The status of the domain name. Valid values:

  • 1: Renewal required.

  • 2: Redemption required.

  • 3: Active.

3

DomainType

string

The type of the domain name. Valid values:

  • New gTLD

  • gTLD

  • ccTLD

gTLD

Email

string

The registrant's email.

username@example.com

EmailVerificationClientHold

boolean

Indicates whether the domain name has a clientHold status due to email verification failure.

false

EmailVerificationStatus

integer

The email verification status. Valid values:

  • 0: Not verified.

  • 1: Verified.

1

ExpirationCurrDateDiff

integer

The number of days until the expiration date.

356

ExpirationDate

string

The expiration date of the domain name.

2019-12-07 17:02:13

ExpirationDateLong

integer

The timestamp of the expiration date.

1625111915000

ExpirationDateStatus

string

The expiration status of the domain name. Valid values:

  • 1: The domain name has not expired.

  • 2: The domain name has expired.

1

InstanceId

string

The instance ID of the domain name.

S20179H1BBI9****

Premium

boolean

Indicates whether the domain name is a premium domain.

false

PrivacyServiceStatus

string

The status of the privacy protection service.

UN_SUPPORT

RealNameStatus

string

The real-name verification status of the domain name. Valid values:

  • NONAUDIT: Not verified.

  • SUCCEED: Successful.

  • FAILED: Failed.

  • AUDITING: In review.

NONAUDIT

RegistrantName

string

The name of the individual registrant or the contact person for an organization.

Test litm

RegistrantOrganization

string

The name of the registrant organization.

Test litm

RegistrantType

string

The type of the registrant. Valid values:

  • 1: Individual.

  • 2: Enterprise.

1

RegistrantUpdatingStatus

string

The status of registrant information updates. Valid values:

  • PENDING: The registrant information is being updated.

  • NORMAL: No update is in progress.

NORMAL

Registrar

string

The registrar of the domain name.

RegistrationDate

string

The registration date of the domain name.

2017-12-07 17:02:13

RegistrationDateLong

integer

The timestamp of the registration date.

1584675448000

Remark

string

The user-provided remark for the domain name.

测试备注

RequestId

string

The unique request ID.

44101664-3E70-4F0E-89E5-CCB74BF*****

ResourceGroupId

string

The ID of the resource group.

rg-acfmw6bpc6n7zai

Tag

object

The tags attached to the domain name.

Tag

array<object>

The list of tags.

object

A resource tag.

Key

string

The tag key.

费用

Vaue

string

The tag value.

标签1

TransferOutStatus

string

The status of the domain transfer out. Valid values:

  • NORMAL: The domain name is not being transferred out.

  • PENDING: The domain name is being transferred out from HiChina.

NORMAL

TransferProhibitionLock

string

The status of the domain transfer lock. Valid values:

  • NONE_SETTING: Not set.

  • OPEN: Enabled.

  • CLOSE: Disabled.

CLOSE

UpdateProhibitionLock

string

The status of the domain name security lock. Valid values:

  • NONE_SETTING: Not set.

  • OPEN: Enabled.

  • CLOSE: Disabled.

CLOSE

UserId

string

The ID of the Alibaba Cloud account.

121000000****

ZhRegistrantName

string

The name of the contact person in Chinese.

王先生

ZhRegistrantOrganization

string

The name of the registrant in Chinese.

王先生

Examples

Success response

JSON format

{
  "CnnicPrivacyServiceStatus": "UN_SUPPORT",
  "DnsList": {
    "Dns": [
      "dns1.hichina.com,dns2.hichina.com"
    ]
  },
  "DomainGroupId": 123456,
  "DomainGroupName": "测试分组",
  "DomainName": "example.com",
  "DomainNameProxyService": false,
  "DomainNameVerificationStatus": "SUCCEED",
  "DomainStatus": "3",
  "DomainType": "gTLD",
  "Email": "username@example.com",
  "EmailVerificationClientHold": false,
  "EmailVerificationStatus": 1,
  "ExpirationCurrDateDiff": 356,
  "ExpirationDate": "2019-12-07 17:02:13",
  "ExpirationDateLong": 1625111915000,
  "ExpirationDateStatus": "1",
  "InstanceId": "S20179H1BBI9****",
  "Premium": false,
  "PrivacyServiceStatus": "UN_SUPPORT",
  "RealNameStatus": "NONAUDIT",
  "RegistrantName": "Test litm",
  "RegistrantOrganization": "Test litm",
  "RegistrantType": "1",
  "RegistrantUpdatingStatus": "NORMAL",
  "Registrar": "",
  "RegistrationDate": "2017-12-07 17:02:13",
  "RegistrationDateLong": 1584675448000,
  "Remark": "测试备注",
  "RequestId": "44101664-3E70-4F0E-89E5-CCB74BF*****",
  "ResourceGroupId": "rg-acfmw6bpc6n7zai",
  "Tag": {
    "Tag": [
      {
        "Key": "费用",
        "Vaue": "标签1"
      }
    ]
  },
  "TransferOutStatus": "NORMAL",
  "TransferProhibitionLock": "CLOSE",
  "UpdateProhibitionLock": "CLOSE",
  "UserId": "121000000****",
  "ZhRegistrantName": "王先生",
  "ZhRegistrantOrganization": "王先生"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.