hosts


设置了ip和域名之后,访问域名时就会访问配置的这个ip,如果不设置hosts访问域名时就会访问其他的ip


1、比如hosts设置了  172.20.**.** beta-**pc.**.com

访问beta-**pc.**.com 其实会用172.20.**.**这个ip


2、如果不设置

访问beta-**pc.**.com  其实会用 10.191.**.**(其他的ip)

 

 

经过上面的配置后,系统的hosts文件也会随之变化(可以去看看:C:\Windows\System32\drivers\etc\hosts)