Help Center/ Content Delivery Network/ Drawer/ (Optional) Testing a Domain Name
Updated on 2025-12-16 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.

    Example: If the domain name is www.example.com and the generated CNAME address is www.example.com.9c****e7.cdnhwcedi10.com, you can ping www.example.com.9c****e7.cdnhwcedi10.com to get the IP address 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.