Help Center> Cloud Certificate & Manager> Best Practices> Verifying Domain Ownership by Resolving the DNS TXT Record - SCM

Verifying Domain Ownership by Resolving the DNS TXT Record - SCM

After applying for an SSL certificate, you need to perform domain name verification. 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 TXT resolution by following the instructions in HUAWEI CLOUD DNS TXT Resolution.
    • If your domain name is hosted in the DNS service on Tencent Cloud, complete the TXT resolution by following the instructions in Tencent Cloud DNS TXT Resolution.
    • If your domain name is hosted in the DNS service on Alibaba Cloud, complete the TXT 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. Go to the domain name verification page by following the steps in Figure 1.

    Figure 1 Accessing the domain name verification page

  3. On the Verify Domain Name page, view the values for Host Record, Record Type, and Record Value. Figure 2 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 2 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 3 shows an example.

    If there is a TXT 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 3 Adding a record set
    • Name: Enter the prefix of the host record returned by the domain name service provider on the domain name verification page.

      The returned host record varies depending on the domain name service provider. The following are two examples:

      Example:
      • If the host record returned by the domain name service provider is _dnsauth.domain3.com, set Name to _dnsauth.
      • If the host record returned by the domain name service provider is domain3.com, leave Name empty.
    • Type: Select TXT – Specify text records.
    • Line: Select Default.
    • TTL (s): The recommended value is 5 min. A larger TTL value will make it slower for synchronization and update of DNS records.
    • Value: Enter the record value returned by the domain name service provider on the domain ownership verification page.

      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.

Tencent Cloud DNS TXT Resolution

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

  1. Log in to the Tencent Cloud DNS console.
  2. In the zone list, locate the zone for which you want to configure a TXT record and click Resolve in the Operation column.
  3. Click Add Record and provide the following information:

    • Host: Enter the prefix of the host record obtained in Obtaining the Host Record and Record Value of a Certificate.

      The returned host record varies depending on the domain name service provider. The following are two examples:

      Example:
      • If the host record returned by the domain name service provider is _dnsauth.domain.com, set Host to _dnsauth.
      • If the host record returned by the domain name service provider is domain.com, set Host to @.
    • Type: Select TXT.
    • Line: Select Default. You must specify an ISP line. Otherwise, your domain name may become inaccessible to some users.
    • Value: TXT record from the SCM console. To obtain the record, refer to Obtaining the Host Record and Record Value of a Certificate.
    • MX Priority: You do not need to set this parameter.
    • TTL: cache time. The smaller the value, the faster the modification takes effect. The default value is 600 seconds.

  4. Click OK.

Alibaba Cloud DNS TXT Resolution

If your domain name is hosted in Alibaba Cloud, you need to add a TXT 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 TXT record.
  3. Click Add Record and provide the following information:

    • Type: Select TXT.
    • Host: Enter the prefix of the host record obtained in Obtaining the Host Record and Record Value of a Certificate.

      The returned host record varies depending on the domain name service provider. The following are two examples:

      Example:
      • If the host record returned by the domain name service provider is _dnsauth.domain.com, set Host to _dnsauth.
      • If the host record returned by the domain name service provider is domain.com, set Host to @.
    • ISP line: Select Default. You must specify an ISP line. Otherwise, your domain name may become inaccessible to some users.
    • Value: TXT record from the SCM console. To obtain the record, refer to Obtaining the Host Record and Record Value of a Certificate.
    • TTL: cache time. The smaller the value, the faster the modification takes effect. The default value is 600 seconds.

  4. Click OK.

Verifying DNS Configurations

Select a command based on your operating system and check whether the DNS configuration takes effect.

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

  • 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

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.