Help Center/ Content Delivery Network/ Getting Started/ (Optional) Testing a Domain Name
Updated on 2024-11-29 GMT+08:00

(Optional) Testing a Domain Name

Test your domain name before adding a CNAME record to the domain's DNS records to ensure that your domain configurations are correct.

  1. Ping the CNAME for the domain name you added to obtain the IP address.

    For this example, we assume that the added domain name is www.example.com, the generated CNAME is www.example.com.7fb73989.cdnhwcedi10.com, and the IP address obtained by pinging www.example.com.7fb73989.cdnhwcedi10.com is 10.0.0.0.

  2. Edit the hosts file on the local PC.
    If you use a Windows system, map the domain name www.example.com to the IP address 10.0.0.0 in the hosts file in the C:\Windows\System32\drivers\etc\ directory.
    Figure 1 Testing the domain name
  3. Access your domain name to test services. If the test results meet your expectation, the configurations are correct.
  4. Add a CNAME record to your domain's DNS records. For details, see Configuring a CNAME Record.