谷歌浏览器的虚拟主机无法与更新后ERR_NAME_NOT_RESOLVED工作的错误 [英] Google Chrome virtual hosts not working with ERR_NAME_NOT_RESOLVED error after update

查看:437
本文介绍了谷歌浏览器的虚拟主机无法与更新后ERR_NAME_NOT_RESOLVED工作的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始这个错误在上午的apache所有我的本地虚拟主机,当我更新了我的Chrome浏览器在Ubuntu最新版本。

I started getting this error for all my local virtual hosts on apache in the morning when I updated my Chrome to the latest version on ubuntu.

尽管所有的人都在其他浏览器Chrome浏览器开始ERR_NAME_NOT_RESOLVED错误行为不端。

While all of them work on other browsers chrome started misbehaving with ERR_NAME_NOT_RESOLVED error.

屏幕截图错误

推荐答案

得到它固定是这样的:

在Chrome浏览器中键入该清除了Chrome浏览器的DNS缓存

Clear up the Chrome's DNS cache by typing this in the Chrome browser


  • 镀铬://净内部/#DNS

  • chrome://net-internals/#dns

截图 - > 法拉盛铬DNS缓存


  • 您会看到一个按钮清空主机缓存。 preSS的DNS缓存
    将被刷新。

  • You will see a button "Clear Host Cache". Press that DNS cache will be flushed.

请这个DNS窗口中打开。现在访问虚拟主机中的浏览器
对我来说是HTTP:/api.localhost。一旦你这样做,你会看到一个
在DNS窗口新条目。对我来说,这是本地主机。
通知的期限 本地主机的那显示的错误结束。

Keep this DNS window open. Now access the virtual host in the browser for me it was http:/api.localhost. Once you do that you will see a new entry in the DNS window. for me it was "localhost." notice the period "." at the end of localhost that showed an error.

最后一步是简单地添加此项为

Last step is to simply add this entry as

127.0.0.1 本地主机。

127.0.0.1 localhost.

在位于主机文件
      Ubuntu的: / etc / hosts中

对于Windows: C:\\ WINDOWS \\ SYSTEM32 \\ DRIVERS \\ ETC \\主机

for windows : C:\Windows\System32\drivers\etc\hosts

另一种解决办法是在当地的虚拟主机域名的结尾

Another solution could be to ditch the .localhost /.dev at the end of your local virtual host domain

这与谷歌通过一些新的变化有关。 .dev和。本地一词在谷歌的TLD(在人们关心的DNS在互联网的角落里,有一个在谷歌的应用程序有点哗然了一百新的顶级域名,包括.dev等)

This has to do with some new changes by google. ".dev" and ".local" comes under google's TLD (In the corner of the internet where people care about DNS, there is a bit of an uproar at Google's application for over a hundred new top-level domains, including .dev etc)

使用你自己的域名。可能使用的全名,如localhost.dev。$ YOURDOMAIN可以帮助这里的设置。

Use a domain name you own. Possibly using the full name like "localhost.dev.$yourdomain" could help here on the setup.

这篇关于谷歌浏览器的虚拟主机无法与更新后ERR_NAME_NOT_RESOLVED工作的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆