我在通过域名访问我的服务器时遇到问题,我尝试 ping 它并得到以下结果:
Pinging www.webuilder.co.uk [95.150.80.104] with 32 bytes of data:
Reply from 95.150.80.104: bytes=32 time<1ms TTL=64
Reply from 95.150.80.104: bytes=32 time<1ms TTL=64
Reply from 95.150.80.104: bytes=32 time<1ms TTL=64
Reply from 95.150.80.104: bytes=32 time<1ms TTL=64
Ping statistics for 95.150.80.104:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\Users\annon>ping webuilder.co.uk
Pinging webuilder.co.uk [95.150.80.56] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 95.150.80.56:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
C:\Users\annon>
连接超时是因为 webuilder.co.uk 因某种原因无法访问吗?我为此使用了 ubuntu 服务器和 apache,一切似乎都运行良好,但今天它突然坏了。如果我从网络外部 ping,我会得到所有请求超时的信息。我正在做端口转发,所以一切都应该没问题,昨天就是这样
答案1
您是否使用 DNS 服务器中存在的 www 注册表?如果不存在,则没有 www 您将无法访问您的 Web 服务器。
编辑:按照我的建议刷新 DNS 缓存解决了这个问题。
在 OS X 中刷新 DNS 缓存的步骤如下:
dscacheutil-刷新缓存
在 Windows 中应该是:
ipconfig /flushdns