After you add and configure a domain name in the CDN console, we recommend that you test the connection by using the following method.
- Check the CNAME domain,
www.qcdntest.cn.cdn.dnsv1.com.cn
- Obtain the cache node IP.
Open a command window and run the following command. The returned IP address is the IP address of the CDN acceleration node.
ping www.qcdntest.cn.cdn.dnsv1.com.cn
- Configure the
hosts
file.
Add the CDN cache node IP (110.185.117.235) and the accelerated domain name (www.qcdntest.cn
) obtained in Step 2 to your local hosts
file in the format of “110.185.117.235 www.qcdntest.cn”.
On Windows, the hosts
file is stored in this directory: C:\Windows\System32\drivers\etc. The following figure shows an example:
On macOS, open the command window, enter `sudo vi /etc/hosts`, press the Enter key, enter the password, and press the Enter key again. After you open the `hosts` file, enter `i` to start editing the file. The content and format are the same as instructed for Windows users.
4. Access the domain name. If the response is the same as that of the origin server, the access succeeds.
![](https://staticintl.cloudcachetci.com/yehe/backend-news/vGCe808_%E4%BC%81%E4%B8%9A%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20230423155227.png)
Was this page helpful?