我现在的情况很奇怪。我无法访问 Facebook。
一旦我打开 Facebook,它只会加载本地主机。
我知道我们可以从主机文件中设置它。但是看看我的主机文件。没有任何东西将 Facebook 重定向到本地主机。我们还有其他方法可以设置此重定向吗?我在 Windows 7 上。
# 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
#127.0.0.1 local
答案1
有几个选择。
- hosts 文件(您已经尝试过)
- DNS 缓存(使用 ipconfig /flushdns 清除)
- DNS 服务器(使用上面发布的 nslookup 检查)
由于您的 DNS 服务器应该有正确的记录,因此“ipconfig /flushdns”可能会解决问题。
另外不要忘记检查你的 DNS 服务器设置
ipconfig /all 应该显示这些,它们需要是可访问的。