This document describes how to perform local testing before modifying DNS records to ensure the service availability.
DNS resolution is required when a local server accesses a website. Before DNS resolution, the IP address of the destination domain name will be obtained from the local
hosts file. Therefore, you can modify the
hosts file to direct local access traffic to WAF to test the connectivity between the website and WAF. This avoids direct modification of DNS records that may affect Internet users' access to the website.
ping <waf cname="" address="">.
C:\Windows\System32\drivers\etc\hostsby adding the following entry.
184.108.40.206is a test address, and it should be the VIP address in actual use.
/etc/hostsby adding the following entry.
ii. If the browser returns a block page, the WAF is working properly.
To view the block page, you can access the default WAF prompt.
After performing the local test, you can proceed as follows: