windows网络连接别名

C:\Windows\System32\drivers\etc目录下的hosts文件中添加

127.0.0.1 localhost
192.168.1.100 proxy.zj.chinamobile.com

 

linux网络连接别名

/etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.1.100 test1
192.168.1.101 test2

 

设置好以后,可以绕过域名解析,直接用域名访问相应IP的网站了。

相关文章:

  • 2021-11-09
  • 2021-07-11
  • 2021-05-29
  • 2021-07-21
  • 2021-12-25
  • 2022-12-23
  • 2021-12-07
  • 2021-10-09
猜你喜欢
  • 2021-11-01
  • 2021-07-31
  • 2021-06-04
  • 2021-09-03
  • 2022-12-23
  • 2022-01-07
  • 2021-11-26
相关资源
相似解决方案