1. Press win+R, enter C:\Wi
ndows\System32\drivers\etc
the location where the host file is opened:
2. Right-click the hosts file –> click Properties –> click Security, and open all group username permissions:
Right click properties switch to security
After configuring, click Apply-OK
Finally verify
verify
5. Win+R, enter cmd, open.
6. Enter ipconfig /flushdns
the command to make the record take effect immediately without restarting:
7. ping su.test.com
, when 127.0.0.1 or something appears, it means that the Ping is successful, and the domain name has been set successfully!