我已经安装了 Windows XP,我想将本地主机从 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 堆栈中,您尝试覆盖它的尝试将被忽略。
关于windows - 在 Windows XP 上覆盖本地主机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19535094/