无法在 Mac 上访问 www.google.com [英] Unable to reach www.google.com on mac
问题描述
在过去 2 周内,我开始在 google 上搜索时遇到问题.我在搜索框或地址栏中输入了一个搜索词,chrome 需要很长时间才能出现问题.
In the past 2 weeks I started having an issue w/ search on google. I enter a search term in the search box or in the address line and chrome takes a long time until something happens.
起初它会说它无法访问该网站,然后立即加载搜索结果,但现在它只是说
At first it would say it couldn't reach the site and then immediately load the search results, but now it just says
无法访问此站点检查 www.google.com 中是否有拼写错误.DNS_PROBE_FINISHED_NXDOMAIN
This site can’t be reachedCheck if there is a typo in www.google.com. DNS_PROBE_FINISHED_NXDOMAIN
我尝试从 firefox 在 google 中搜索并得到相同的行为.我在终端中 ping google.com
并且 ping 看起来不错,但是当我 ping www.google.com
时,ping 超时
I tried searching in google from firefox and got the same behavior.
I pinged google.com
in the terminal and the ping looked fine, but when I pinged www.google.com
the ping timed out
~ % ping google.com
PING google.com (74.125.140.113): 56 data bytes
64 bytes from 74.125.140.113: icmp_seq=0 ttl=107 time=69.498 ms
64 bytes from 74.125.140.113: icmp_seq=1 ttl=107 time=71.254 ms
64 bytes from 74.125.140.113: icmp_seq=2 ttl=107 time=69.944 ms
64 bytes from 74.125.140.113: icmp_seq=3 ttl=107 time=71.139 ms
^C
--- google.com ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 69.498/70.459/71.254/0.756 ms
~ % ping www.google.com
ping: cannot resolve www.google.com: Unknown host
尝试重新启动 mac 并没有任何改变
tried restart of the mac and nothing changed
我尝试按照此处的建议进行操作,但没有奏效https://stackoverflow.com/a/65695189/2482564
I tried following the suggestions here and it didn't work https://stackoverflow.com/a/65695189/2482564
mac 版本:11.2.3
mac version:11.2.3
关于如何前进的任何想法?
any ideas on how to move forward?
推荐答案
正如一位同事向我解释的,问题来自我的 ISP DNS 服务器,
As it was explained to me by a colleague the problem comes from my ISP DNS server,
我不得不将 mac 上的 DNS 从默认 DNS 更改为 8.8.8.8
I had to change the DNS on the mac from the default DNS to 8.8.8.8
使用<代码>系统偏好设置->网络.单击Advanced
按钮,然后转到DNS 选项卡
.单击 +
按钮.输入 8.8.8.8
using System Preferences-> Network
. Click the Advanced
button then go to the DNS tab
. Click on the +
button. Enter 8.8.8.8
在此处的其中一条评论中对此进行了解释 - https://stackoverflow.com/a/65695189/2482564
it was explained in one of the comments here - https://stackoverflow.com/a/65695189/2482564
您可以阅读一些有关 google 公共 dns 的信息 - https://developers.google.com/speed/public-dns
You can read a little about the google public dns - https://developers.google.com/speed/public-dns
这篇关于无法在 Mac 上访问 www.google.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!