Help Center/ Cloud Certificate Manager/ Best Practices/ Best Practices for SSL Certificate Manager/ Resolving a DNS Record on Huawei Cloud or Alibaba Cloud
Updated on 2024-12-17 GMT+08:00

Resolving a DNS Record on Huawei Cloud or Alibaba Cloud

After you submit an SSL certificate application to the CA, you need to verify domain name ownership as required by the CA. This topic describes how to verify your domain name ownership by DNS.

Background

After you apply for an SSL certificate from a CA, you are required to verify the domain name ownership. You need to work with the CA to complete the domain name ownership verification. After your ownership of the domain name is verified by you and approved by the CA, the status of your certificate will change.

If you do not complete the domain ownership verification, your certificate will remain in the Pending domain name verification state.

Domain name ownership verification by DNS is to verify domain ownership by resolving a specific DNS record on the platform hosting the domain name. When you apply for a certificate and select DNS for Domain Name Verification Method, follow the instructions in this part to complete the verification.

Procedure

  1. Obtain the host record and record value of a certificate. For details, see Obtaining the Host Record and Record Value of a Certificate.
  2. Perform domain name ownership verification by DNS.

    Domain name ownership verification by DNS is to resolve DNS records, which can be performed only on the domain name management platform that hosts your domain name. The following examples are for your reference.
    • If your domain name is hosted in the DNS service on Huawei Cloud, complete the resolution by following the instructions in Huawei Cloud DNS TXT Resolution.
    • If your domain name is hosted in the DNS service on Alibaba Cloud, complete the resolution by following the instructions in Alibaba Cloud DNS TXT Resolution.

  3. Check whether the ownership verification takes effect. For details, see Verifying DNS Configurations.

Obtaining the Host Record and Record Value of a Certificate

  1. Log in to the management console.
  2. Click in the upper left corner of the page and choose Security & Compliance > Cloud Certificate Management Service. The service console is displayed.
  3. In the navigation pane on the left, choose SSL Certificate Manager. In the row containing the desired certificate, click Verify Domain Name in the Operation column. The Verify Domain Name page is displayed.
  4. On the Verify Domain Name page, view the content for Host Record, Record Type, and Record Value. Figure 1 shows an example.

    If Host Record, Record Type, and Record Value are not displayed, log in to the mailbox to view. The mailbox is the one you provide during certificate application.
    Figure 1 Viewing a host record

Huawei Cloud DNS TXT Resolution

Refer to this part if you are managing your domain name on Huawei Cloud.

  1. Log in to the management console.
  2. Choose Domain Name Service under Network to go to the Domain Name Service page.
  3. In the navigation pane on the left, choose DNS Resolution > Public Zones.
  4. In the domain name list on the Public Zones page, click the added domain name (or the primary domain name for a multi-domain certificate) to go to the record set page.
  5. In the upper right corner of the page, click Add Record Set. Figure 2 shows an example.

    If there is a DNS record of domain name domain3.com in the domain name list, click Modify in the Operation column. Modify the record in the displayed Modify Record Set dialog box.

    Figure 2 Adding a record set
    Table 1 Parameters for adding a record set

    Parameter

    Description

    Name

    Host record returned by the domain name service provider on the domain name verification page of the certificate.

    Type

    Record type returned by the domain name service provider on the domain name verification page.

    Alias

    Select No.

    Line

    Select Default.

    TTL (s)

    Set this parameter to 5 min. A larger TTL value indicates less frequency of DNS record synchronization and update.

    Value

    Record value returned by the domain name service provider on the domain name verification page of the certificate.

    NOTE:

    Record values must be quoted with quotation marks and then pasted in the text box.

    Keep other settings unchanged.

  6. Click OK.

    If the status of the record set is Normal, the record set is added successfully.
    • DNS configuration records can be deleted only after the certificate is issued or revoked.
    • Check whether the DNS record is correctly configured. If not, the certificate cannot be issued.

  7. After the verification is complete, additional time is required for the CA to verify your domain name. During this period, the certificate is in the Pending domain name verification state.

    The certificate enters the Pending organization verification state only after the CA has confirmed your domain ownership.

Alibaba Cloud DNS TXT Resolution

If your domain name is hosted in Alibaba Cloud, you need to add a record through the Alibaba Cloud DNS console to complete the verification.

  1. Log in to the Alibaba Cloud DNS console.
  2. On the Manage DNS page, click the Domains tab and click the name of the domain name for which you want to configure a record.
  3. Click Add Record and provide the following information:

  4. Click OK.

Verifying DNS Configurations

Select a command based on the record type and OS and check whether the DNS configuration takes effect.

Use TXT record _dnsauth.domain.com as an example.

  • For TXT records
    • For Windows OSs:
      nslookup -q=TXT _dnsauth.domain.com
    • For Linux OSs:
      dig TXT _dnsauth.domain.com
    • For macOS OSs:
      dig TXT _dnsauth.domain.com
  • For CNAME records
    • Windows OSs
      nslookup -q=CNAME _dnsauth.domain.com
    • Linux OSs
      dig CNAME _dnsauth.domain.com
    • macOS OSs
      dig CNAME _dnsauth.domain.com

If the value recorded in the command output (value of text) is the same as that returned by the domain name service provider, the configuration of domain name ownership verification has taken effect.