16.04 如何让Chrome遵守/etc/hosts?

Tom*_*uis 5 google-chrome dns

在我的 Ubuntu 16.04 上,Firefox 遵循/etc/hosts,但 chrome 和 chromium 不遵循。我怎样才能让 Chrome 服从/etc/hosts

Ale*_*exP 1

请参阅Superuser 上的类似问题。基本上,要让 Chromium 和 Chrome 服从,您应该禁用“预测网络操作以提高页面加载性能/etc/hosts”设置。


sal*_*nap 0

如果您使用 chrome数据保护插件并且已打开该插件,则 chrome 不会考虑主机文件设置。尝试将其关闭,它将按预期工作。