我已经安装了
Windows XP,我想将localhost从127.0.0.1覆盖到另一个地址.我已编辑../windows/system32/drivers/etc/hosts,但ping localhost仍然得到127.0.0.1的响应.我怎么能改变呢?
解决方法
这是来自Windows主机文件的片段:
# localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost
换句话说,localhost的处理被硬编码到Windows DNS堆栈中,您的覆盖尝试将被忽略.