如果您遇到解决Google Chrome中的(Google Chrome)主机错误(Host Error)导致网站加载缓慢或找不到DNS服务器的问题,请不要担心,因为在本指南中,我们将讨论几个可以解决问题的修复程序。
如果您无法打开网站或网站在Google Chrome中加载速度非常慢,那么如果您仔细观察,您会在浏览器的状态栏中看到“正在解析主机”消息,这是问题的根本原因。大多数用户都遇到过这个问题,但他们实际上并不知道这背后的原因,他们只是忽略了该消息,直到他们无法打开网站。不仅谷歌浏览器(Google Chrome),所有其他浏览器也受到此问题的影响,例如Firefox、Safari、Edge等。
注意:(Note: )此消息可能因浏览器而异,例如在Chrome中显示“正在解析主机”,在Firefox中显示“正在查找”等。
为什么解析主机(Host)发生在Chrome上?(Did)
要打开任何网站,您要做的第一件事是在浏览器地址栏中输入网站的URL ,然后(URL)按 Enter(Enter)。如果您认为这确实是网站的打开方式,那么您就错了,我的朋友,因为实际上打开任何网站都涉及复杂的过程。为了打开任何网站,您输入的URL首先被转换为 IP 地址,以便计算机能够理解。将URL解析为 IP 地址是通过域名系统(Domain Name System)( DNS ) 进行的。
当您输入任何URL时,它会进入多级(URL)DNS层次结构,一旦为输入的URL找到正确的 IP 地址,就会将其发送回浏览器,从而显示网页。解决主机问题的原因可能是您的Internet 服务提供商(Internet Service Provider)( ISP ),因为他们配置的DNS服务器需要很长时间才能找到输入URL的映射 IP 地址。问题的其他原因是ISP更改或DNS设置更改。另一个原因是存储的DNS缓存也可能导致查找正确 IP 地址的延迟。
解决 Google Chrome 中的主机错误的 10 种方法(10 Ways to Fix Resolving Host Error in Google Chrome)
下面给出了几种方法,您可以使用这些方法修复Chrome中的 Resolving host error :
方法 1:禁用 DNS 预测或预取(Method 1: Disable DNS Prediction or Prefetching)
Chrome Prefetch选项允许网页快速加载,此功能通过将您访问或搜索的网页的 IP 地址存储在缓存中来工作。并且现在每当你尝试访问相同的URL时,浏览器将不再搜索,而是直接从缓存中搜索输入的URL的 IP 地址,从而提高网站的加载速度。(URL)但此选项也可能导致Chrome上的(Chrome)Resolving host issue ,因此您需要按照以下步骤禁用预取功能:
1.打开谷歌浏览器。
2.现在点击右上角的三个点图标( three dots icon),然后选择设置。(Settings.)
3.向下滚动到窗口底部,然后单击高级选项。(Advanced option.)
4.现在在隐私(Privacy)和安全部分下,关闭“( toggle OFF)使用预测服务以更快地加载页面(Use a prediction service to load pages more quickly)”选项旁边的按钮。
完成上述步骤后,Prefetch resources 选项将被禁用(Prefetch resources option will be disabled),现在您将能够访问之前显示 Resolving Host错误的网页。
方法二:使用谷歌 DNS 服务器(Method 2: Use Google DNS Server)
有时ISP(ISP)提供的默认DNS服务器会导致Chrome出现错误,或者有时默认DNS不可靠,在这种情况下,您可以轻松更改 Windows 10 上的 DNS 服务器(change DNS servers on Windows 10)。建议使用Google Public DNS,因为它们可靠并且可以解决您计算机上与DNS相关的任何问题。(DNS)
方法 3:清除 DNS 缓存(Method 3: Clear DNS Cache)
1.打开谷歌浏览器(Google Chrome),然后按pressing Ctrl+Shift+N.进入隐身模式。(Incognito Mode)
2.现在在地址栏中输入以下内容并按Enter:
chrome://net-internals/#dns
3.下一步,单击清除主机缓存(Clear host cache)并重新启动浏览器。
推荐:解决谷歌浏览器页面加载缓慢的 10 种方法(10 Ways To Fix Slow Page Loading In Google Chrome)
Method 4: Flush DNS & Reset TCP/IP
1.右键单击Windows按钮(Windows Button)并选择“命令提示符(管理员)。(Command Prompt(Admin).)“
2.现在键入以下命令并在每个命令后按Enter :
ipconfig /release
ipconfig /flushdns
ipconfig /renew
3.再次打开提升的命令提示符(elevated Command Prompt)并键入以下内容并在每个之后按回车键:
ipconfig /flushdns
nbtstat –r
netsh int ip reset
netsh winsock reset
4.重新启动以应用更改。刷新DNS似乎可以 修复 Google Chrome 中的解决主机错误。(Fix Resolving Host Error In Google Chrome.)
方法 5: (Method 5: )禁用 VPN 和代理(Disable VPN & Proxy)
如果您使用VPN来解锁学校、学院(unblock the blocked sites in schools, colleges)、商业场所等中被阻止的站点,那么它也可能导致Chrome中的(Chrome)Resolving Host问题。激活VPN后,用户的真实 IP 地址会被阻止,而会分配一些匿名 IP 地址,这可能会造成网络混乱,并会阻止您访问网页。
由于VPN分配的 IP 地址可以被大量用户使用,这可能导致Chrome上的 Resolving (Chrome)Host问题,建议暂时禁用 VPN(temporarily disable VPN)软件并检查您是否能够访问该网站。
如果您的系统或浏览器上安装了 VPN 软件,则可以按照以下步骤删除它们:
- 通常,如果您的浏览器上安装了VPN,则其图标将出现在Chrome地址栏中。
- 右键单击(Right-click)VPN图标,然后从菜单中选择“从Chrome 中删除(Remove from Chrome)”选项。
- 此外,如果您的系统上安装了VPN,则从通知区域右键单击VPN 软件图标。(VPN software icon.)
- 单击断开连接选项。(Disconnect option.)
执行上述步骤后,VPN将被删除或暂时断开连接,现在您可以尝试检查您是否能够访问之前显示错误的网页。如果您仍然遇到问题,那么您还需要按照以下步骤在Windows 10上禁用(Windows 10)代理:(Proxy)
1.按 Windows 键 + R 然后键入msconfig并单击确定。
2.选择启动选项卡(boot tab)并检查安全启动(Safe Boot)。然后单击应用和确定。
3.重新启动您的 PC 并再次重新启动按Windows Key + R然后键入inetcpl.cpl。
4.点击确定打开互联网属性,然后从那里选择连接。(Connections.)
5.取消选中“为您的局域网使用代理服务器(Use a proxy server for your LAN)”。然后单击确定。
6.再次打开 MSConfig 窗口并取消选中安全启动(uncheck Safe boot )选项,然后单击应用和确定。
7.重新启动您的 PC,您可能能够修复解决 Google Chrome 中的主机错误。(Fix Resolving Host Error In Google Chrome.)
方法六:清除浏览数据(Method 6: Clear Browsing Data)
当您使用Chrome浏览任何内容时,它会保存您搜索过的URL(URLs)、下载历史 cookie、其他网站和插件。这样做的目的是提高搜索结果的速度,方法是先在缓存或硬盘中搜索,如果在缓存或硬盘中找不到,然后到网站下载。但是,有时这个缓存会变得太大,最终会减慢页面加载速度,从而在Chrome中出现 Resolving (Chrome)Host错误。因此,通过清除浏览数据,您的问题可能会得到解决。
要清除整个浏览历史记录,请按照以下步骤操作:
1.打开谷歌浏览器,按 Ctrl + H 打开历史记录。
2.下一步,单击 左侧面板中的清除浏览(Clear browsing) 数据。
3.现在您需要确定要删除历史日期的时间段。如果要从头开始删除,则需要选择从头开始删除浏览历史记录的选项。
注意:(Note:)您还可以选择其他几个选项,例如过去一小时、过去 24 小时、过去 7 天等。
4.另外,勾选以下:
- 浏览记录
- Cookie 和其他网站数据
- 缓存的图像和文件
5.现在点击 清除数据(Clear data)开始删除浏览历史并等待它完成。
6.关闭您的浏览器并重新启动您的电脑。
方法七:修改主机配置文件(Method 7: Modifying Hosts Profile )
'hosts' 文件是一个纯文本文件,它将主机名(hostnames)映射到IP 地址(IP addresses)。主机文件有助于寻址计算机网络中的网络节点。如果您尝试访问但由于解决主机错误( Resolving Host Error)而无法访问的网站 已添加到主机文件中,则您需要删除特定网站并保存主机文件以解决问题。编辑 hosts 文件并不简单,因此建议您阅读本指南(go through this guide)。要修改主机的文件,请按照以下步骤操作:
1.按 Windows 键 + Q 然后键入记事本(Notepad)并右键单击它以选择以管理员身份运行。(Run as administrator.)
2.现在单击文件(File),然后选择打开(Open)并浏览到以下位置:
C:\Windows\System32\drivers\etc
3.接下来,从文件类型中选择所有文件。(All Files.)
4.然后选择hosts文件(select hosts file)并点击打开。
5.删除最后一个# sign.
6.单击File>save然后关闭记事本并重新启动PC。
完成上述步骤后,您的主机文件将被修改,现在尝试运行网站,它现在可以完美加载。
但是,如果您仍然无法打开网站,那么您可以使用主机文件控制域名到 IP 地址的解析。并且主机文件的解析发生在DNS解析之前。因此,您可以轻松地在主机文件中添加 IP 地址及其对应的域名或URL,以修复Chrome中的(Chrome)Resolving Host错误。因此,每当您访问特定网站时,都会直接从 hosts 文件中解析 IP 地址,对于您经常访问的网站,解析过程会更快。此方法唯一的缺点是无法在 hosts 文件中维护您访问的所有网站的 IP 地址。
1.在开始菜单(Start Menu)搜索栏中键入记事本(Notepad),然后右键单击它并选择以管理员身份运行。(Run as administrator.)
2.现在从记事本菜单中单击文件,然后选择(File)打开(Open)并浏览到以下位置:
C:\Windows\System32\drivers\etc
3.下一步,从文件类型中选择所有文件(All Files ),然后选择主机文件(select hosts file)并单击打开。
4.hosts文件将打开,现在在hosts文件中添加所需的IP地址及其域名(URL)。
示例:17.178.96.59 www.apple.com
5. 按键盘上的Ctrl + S按钮保存文件。
完成上述步骤后,您的主机文件将被修改,现在您可以再次尝试打开网站,这一次它可能会加载而没有任何问题。
方法 8:禁用 IPv6(Method 8: Disable IPv6)
1.右键单击系统托盘上的WiFi图标(WiFi icon),然后单击“打开网络和Internet设置(Open Network and Internet Settings)”。
2.现在在状态(Status)窗口中向下滚动并单击网络和共享中心(Network and Sharing Center)。
3.下一步,单击您当前的连接以打开其属性(Properties)窗口。
注意:(Note:)如果您无法连接到您的网络,请使用以太网(Ethernet)电缆进行连接,然后按照此步骤操作。
4.单击 Wi-Fi 状态窗口中的属性(Properties)按钮。
5.确保uncheck Internet Protocol Version 6 (TCP/IPv6).
6.单击确定,然后单击关闭(Close)。重新启动(Reboot)您的 PC 以保存更改。
方法9:IP地址冲突(Method 9: IP Address Conflict)
虽然不是经常发生的事情,但是IP地址冲突(IP address conflicts)是非常现实的问题,困扰着很多用户。当同一网络中的 2 个或更多系统、连接端点或手持设备最终被分配相同的 IP 地址时,就会发生 IP 地址冲突。(Conflicting)这些端点可以是PC(PCs)、移动设备或其他网络实体。当 2 个端点之间发生此 IP 冲突时,会导致无法使用 Internet 或连接到 Internet。
如果您遇到错误Windows已在您的计算机上检测到 IP 地址冲突,则这意味着同一网络上的另一台设备与您的 PC 具有相同的 IP 地址。主要问题似乎是您的计算机和路由器之间的连接,因此请尝试重新启动调制解调器或路由器,问题可能会得到解决。
方法 10:联系您的互联网服务提供商(Method 10: Contact Your Internet Service Provider)
如果上述方法都不起作用,那么最后一个选择是联系您的Internet 服务提供商(Internet Service Provider)( ISP ) 并与他们讨论问题。您还需要向他们提供您尝试访问但由于Chrome中的Resolving Host Error而无法访问的网站的所有(Resolving Host Error)URL(URLs)。您的ISP 将最终检查问题,并解决问题或让您知道他们正在阻止这些网站。
受到推崇的:(Recommended:)
因此,希望通过使用上述任何一种解决方案,您都可以在Google Chrome(Google Chrome)中解决您的 Resolving host 问题。
10 Ways to Fix Resolving Host Error in Chrome
If you’re facing the issυe of Resolving Host Error In Google Chrome сausing the websites to load slowly or DNS server not found then don’t worry as in this guide we will talk about several fixes that will resolve the issυe.
If you’re not able to open a website or the website is loading very slowly in Google Chrome then if you look closely you will see the “Resolving Host” message in the status bar of the browser which is the root cause of the issue. This issue is experienced by most of the users but they don’t actually know the reason behind this and they simply ignore the message until they are not able to open the website. Not only Google Chrome but all the other browsers are also affected by this problem such as Firefox, Safari, Edge, etc.
Note: This message may vary from browser to browser like in Chrome it shows “Resolving host”, in Firefox it shows “Looking up”, etc.
Why Did Resolving Host happen on Chrome?
To open any website the first thing you do is enter the URL of the website in the browsers address bar and hit Enter. And if you think this is really how the website opens then you are wrong my friend as in reality there is a complex process involved to open any website. In order to open any website, the URL which you enter is first converted into the IP address so that the computers can understand it. The resolution of the URL into an IP address happens through Domain Name System (DNS).
When you enter any URL, it goes to a multilevel hierarchy of DNS and as soon as the correct IP address is found for the entered URL, it is sent back to the browser and as a result, the webpage is displayed. The reason for resolving the host issue can be your Internet Service Provider (ISP) as the DNS servers configured by them is taking a long time to find a mapping IP address for the entered URL. Other reasons for the issues are a change in ISP or change in the DNS settings. Another reason is the stored DNS cache may also cause a delay in finding the correct IP address.
10 Ways to Fix Resolving Host Error in Google Chrome
Below are given several methods using which you can fix Resolving host error in Chrome:
Method 1: Disable DNS Prediction or Prefetching
Chrome Prefetch option allows web pages to load quickly and this feature works by storing the IP addresses of the web pages visited or searched by you in the cache memory. And now whenever you try to visit the same URL, then instead of searching for it again, the browser will directly search for the IP address of the entered URL from the cache memory improving the loading speed of the website. But this option can also cause the Resolving host issue on Chrome, so you need to disable the prefetch feature by following the below steps:
1.Open Google Chrome.
2.Now click on the three dots icon available at the top right corner and select Settings.
3.Scroll down to the bottom of the window and click on Advanced option.
4.Now under the Privacy and security section, toggle OFF the button next to the option “Use a prediction service to load pages more quickly“.
After completing the above steps, the Prefetch resources option will be disabled and now you will be able to visit the webpage earlier showing Resolving Host error.
Method 2: Use Google DNS Server
Sometimes the default DNS server provided by the ISP can cause the error in Chrome or sometimes the default DNS isn’t reliable, in such cases, you can easily change DNS servers on Windows 10. It is recommended to use Google Public DNS as they are reliable and can fix any issues related to DNS on your computer.
Method 3: Clear DNS Cache
1.Open Google Chrome and then go to Incognito Mode by pressing Ctrl+Shift+N.
2.Now type the following in the address bar and hit Enter:
chrome://net-internals/#dns
3.Next, click Clear host cache and restart your browser.
Recommended: 10 Ways To Fix Slow Page Loading In Google Chrome
Method 4: Flush DNS & Reset TCP/IP
1.Right-click on Windows Button and select “Command Prompt(Admin).“
2.Now type the following command and press Enter after each one:
ipconfig /release
ipconfig /flushdns
ipconfig /renew
3.Again open elevated Command Prompt and type the following and hit enter after each one:
ipconfig /flushdns
nbtstat –r
netsh int ip reset
netsh winsock reset
4.Reboot to apply changes. Flushing DNS seems to Fix Resolving Host Error In Google Chrome.
Method 5: Disable VPN & Proxy
If you’re using a VPN to unblock the blocked sites in schools, colleges, business places, etc then it can also cause the Resolving Host problem in Chrome. When the VPN is activated, the user’s real IP address is blocked and instead some anonymous IP address is assigned which can create confusion for the network and it can block you from accessing the webpages.
Since the IP address assigned by the VPN can be used by a large number of users which can lead to Resolving Host issue on Chrome, it is advised to temporarily disable VPN software and check if you’re able to access the website or not.
If you have VPN software installed on your system or browser then remove you can remove them by following the below steps:
- Generally, if a VPN is installed on your browser, its icon will be available at the Chrome address bar.
- Right-click the VPN icon then select the “Remove from Chrome” option from the menu.
- Also, if you have a VPN installed on your system then from the notification area right-click on the VPN software icon.
- Click on the Disconnect option.
After performing the above steps, the VPN will either be removed or temporarily disconnected and now you can try to check if you’re able to visit the webpage which earlier was showing the error. If you’re still facing the issue then you also need to disable Proxy on Windows 10 by following the below steps:
1.Press Windows Key + R then type msconfig and click OK.
2.Select boot tab and check Safe Boot. Then click Apply and OK.
3.Restart your PC and once restarted again press Windows Key + R then type inetcpl.cpl.
4.Hit Ok to open internet properties and from there select Connections.
5.Uncheck “Use a proxy server for your LAN“. Then click OK.
6.Again open MSConfig window and uncheck Safe boot option then click apply and OK.
7.Restart your PC and you may be able to Fix Resolving Host Error In Google Chrome.
Method 6: Clear Browsing Data
As you browse anything using Chrome, it saves the URLs you have searched, download history cookies, other websites, and plugins. The purpose of doing so is to increase the speed of the search result by searching first in the cache memory or your hard drive and then go to the website to download it if not found in the cache memory or the hard drive. But, sometimes this cache memory becomes too large and it ends up slowing down the page loading giving Resolving Host error in Chrome. So, by clearing the browsing data, your problem may be resolved.
To clear the entire browsing history, follow the below steps:
1.Open Google Chrome and press Ctrl + H to open history.
2.Next, click Clear browsing data from the left panel.
3.Now you need to decide the period for which you are deleting the history date. If you want to delete from the beginning you need to choose the option to delete browsing history from the beginning.
Note: You can also select several other options such as Last hour, Last 24 hours, Last 7 days, etc.
4.Also, checkmark the following:
- Browsing history
- Cookies and other site data
- Cached images and files
5.Now click Clear data to start deleting the browsing history and wait for it to finish.
6.Close your browser and restart your PC.
Method 7: Modifying Hosts Profile
A ‘hosts’ file is a plain text file, which maps hostnames to IP addresses. A host file helps in addressing network nodes in a computer network. If the website which you are trying to visit but unable to due to the Resolving Host Error is added in the hosts file then you to remove the particular website and save the hosts file to fix the issue. Editing the hosts file is not simple, and therefore it is advised that you go through this guide. To modify the host’s file follow the below step:
1.Press Windows Key + Q then type Notepad and right-click on it to select Run as administrator.
2.Now click File then select Open and browse to the following location:
C:\Windows\System32\drivers\etc
3.Next, from the file type select All Files.
4.Then select hosts file and click open.
5.Delete everything after the last # sign.
6.Click File>save then close notepad and restart your PC.
After completing the above steps, your host’s file will be modified and now try to run the website, it may load perfectly now.
But if you’re still not able to open the website then you can control the resolution of the domain name to the IP address using the host file. And the resolution of the host file takes place before the DNS resolution. So you can easily add the IP address and it’s corresponding domain name or the URL in the host file to fix the Resolving Host error in Chrome. Thus whenever you visit the particular website, the IP address will get resolved from the hosts file directly and the resolution process will be much faster for the sites you visit frequently. The only downside of this method is that it is not possible to maintain the IP addresses of all the websites you visit in the hosts file.
1.Type Notepad in Start Menu search bar and then right-click on it and select Run as administrator.
2.Now click File from notepad menu then select Open and browse to the following location:
C:\Windows\System32\drivers\etc
3.Next, from the file type select All Files then select hosts file and click open.
4.The hosts file will open, now add the required IP address & its domain name (URL) in the hosts file.
Example: 17.178.96.59 www.apple.com
5.Save the file by pressing the Ctrl + S button on your keyboard.
After completing the above steps, your hosts file will be modified and now you can again try to open the website and this time it may load without any issues.
Method 8: Disable IPv6
1.Right click on the WiFi icon on the system tray then click on “Open Network and Internet Settings“.
2.Now scroll down in the Status window and click on Network and Sharing Center.
3.Next, click on your current connection in order to open its Properties window.
Note: If you can’t connect to your network then use Ethernet cable to connect and then follow this step.
4.Click on the Properties button in the Wi-Fi Status window.
5.Make sure to uncheck Internet Protocol Version 6 (TCP/IPv6).
6.Click OK then click Close. Reboot your PC to save changes.
Method 9: IP Address Conflict
Even though it is not something occurs frequently, still, IP address conflicts are extremely real problems and troubles a lot of users. Conflicting of IP address happens when 2 or more systems, connection end-points or hand-held devices in the same network wind up being allocated the same IP address. These endpoints can be either PCs, mobile devices, or other network entities. When this IP conflict occurs between 2 endpoints, it causes trouble to use the internet or connect to the internet.
If you are facing the error Windows has detected an IP address conflict on your computer then this means another device on the same network has the same IP address as your PC. The main issue seems to be the connection between your computer and the router, so try to restart the modem or router and the problem may get resolved.
Method 10: Contact Your Internet Service Provider
If none of the above methods work then the last option is to contact your Internet Service Provider (ISP) and discuss the issue with them. You also need to provide them with all the URLs of the websites that you’re trying to access but unable to because of the Resolving Host Error in Chrome. Your ISP will check the issue on their end and will either fix the problem or let you know that they are blocking these websites.
Recommended:
So, hopefully by using any of the above-explained solutions you could able to fix your Resolving host issue in Google Chrome.