gpt4 book ai didi

ip - 为什么我的主机文件条目被浏览器忽略?

转载 作者:行者123 更新时间:2023-12-03 15:59:12 24 4
gpt4 key购买 nike

关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。












想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。

去年关闭。




Improve this question




我映射了一个IP为www.facebook.com的网站当我请求不同的 url(比如 www.x.lk)特定站点时加载 Facebook。它运作良好。但是当我尝试映射逆时,应该加载 www.x.lk当我要求 Facebook 时,它不起作用。正在加载原始 Facebook 站点。问题是什么?有人可以帮我从这里出去吗?

    # Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
104.16.73.189 www.facebook.com

最佳答案

你有机会使用 Chrome 吗?如果不是,请尝试刷新系统的 DNS 缓存(Windows 上的 ipconfig /flushdns)。

然而,Chrome 有自己的 DNS 缓存。我发现要去chrome://net-internals/#sockets并单击“刷新套接字池”有效。

如果您不想每次都手动执行此操作,Host Switch Plus扩展可能会有所帮助。

注:您也可以到chrome://net-internals/#dns检查 URL 解析为什么,但“清除主机缓存”按钮并没有为我解决这个特定问题。

关于ip - 为什么我的主机文件条目被浏览器忽略?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37452361/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com