This topic describes how to verify the availability of a Dynamic Route for CDN (DCDN) accelerated domain in the DCDN console.

Prerequisites

A domain name is added to DCDN for acceleration. For more information, see Add a domain.

Procedure

  1. Query the canonical name (CNAME) of the accelerated domain.
    1. Log on to the DCDN console.
    2. In the left-side navigation pane, click Domain Names.
    3. On the Domain Names page, copy the CNAME of the accelerated domain name.
      Note We recommend that you copy the CNAME of the domain name that is in the Normal state.
  2. Obtain the IP address that the host accesses.
    • Windows: Launch the terminal and run the ping CNAME command.
    • macOS: Launch the terminal and run the dig CNAME command.MAc dig CNAME
  3. Configure the local host file.
    • The path of the host file in Windows is C:\Windows\System32\drivers\etc\hosts.
    • The path of the host file in macOS is Finder>Go>Go to the folder>/etc/hosts. Enter the /etc/hosts path in the search bar.
    Host file
  4. Check whether the accelerated domain name can be accessed.

    After you configure the local host file, open your browser and enter the accelerated domain name to test the connectivity. Then, check whether the accessed domain matches the accelerated domain name that is bound to the host.

    Test the connectivity of the website

What to do next

You can also test other features of your origin site on your computer.