为什么 /etc/hosts 在 Ubuntu 10.04 上对我的 firefox 没有影响?

5 linux ubuntu hosts-file

我试图阻止一些主机从它们加载广告和脚本。例如在/etc/hosts

127.0.0.1 web-visor.com
0.0.0.0   c1.web-visor.com
Run Code Online (Sandbox Code Playgroud)

为什么在编辑和保存文件后,firefox(重启后)仍然加载这个站点(当然不是从缓存中)?

/etc/host.conf似乎以前在主机文件中搜索过

order hosts,bind
multi on
Run Code Online (Sandbox Code Playgroud)

怎么了?

Tob*_*obu 2

host.conf已过时,查看nsswitch.conf