win10 modify the local host file, add a custom local access domain name 127.0.0.1 (super detailed)

1. Press win+R, enter C:\Windows\System32\drivers\etcthe location where the host file is opened:

 insert image description here

2. Right-click the hosts file –> click Properties –> click Security, and open all group username permissions:

insert image description here

Right click properties switch to security

insert image description here

 

 After configuring, click Apply-OK

Finally verify

verify

5. Win+R, enter cmd, open.

insert image description here

6. Enter  ipconfig /flushdns the command to make the record take effect immediately without restarting:

insert image description here

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! 

 

Guess you like

Origin blog.csdn.net/qq_42543264/article/details/131163848