Google chrome 铬;无法从主机名“确定IP地址”;从主机文件项

Google chrome 铬;无法从主机名“确定IP地址”;从主机文件项,google-chrome,Google Chrome,我在chrome解析本地主机文件(/etc/hosts)中的条目时遇到问题。这是我的主机文件: ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 127.0.0.1 mylocalpage.com 不幸的是,当我尝试访问

我在chrome解析本地主机文件(/etc/hosts)中的条目时遇到问题。这是我的主机文件:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost

127.0.0.1 mylocalpage.com
不幸的是,当我尝试访问该页面时,chrome出现以下错误:

错误

无法检索请求的URL

尝试检索URL时遇到以下错误:

无法从主机名mylocalpage.com确定IP地址

DNS服务器返回:

名称错误:域名不存在。这意味着系统 无法解析URL中显示的主机名。检查是否 地址是正确的

在firefox、opera等所有其他浏览器上,它都能很好地工作。chrome中有我忘记的设置吗


我真的不知道怎么从这里开始。有人能给我一个方法来处理这件事吗

这似乎是缓存问题。试着把它清理干净chrome://net-internals/#dns.这似乎是缓存问题。试着把它清理干净chrome://net-internals/#dns.

在/etc/hosts中修改后是否重新启动了chrome。希望您正在修改/etc/hosts文件的同一服务器上尝试chrome。在/etc/hosts中修改后是否重新启动了chrome。希望您正在修改/etc/hosts文件的同一服务器上尝试chrome。