How to change /etc/hosts
It’s useful to change /etc/hosts, especially with protections requesting online keys 2008-02-03 00:10:01 Author: reverse.put.as(查看原文) 阅读量:36 收藏

It’s useful to change /etc/hosts, especially with protections requesting online keys. After editing /etc/hosts you need to refresh OS X NetInfo Database. Just run the following command:

$ sudo niload -v -m hosts . < /etc/hosts

And then flush cache with:

$ lookupd -flushcache

For Snow Leopard the command has changed. It is now:

$ dscacheutil -flushcache

And that’s it!


文章来源: https://reverse.put.as/2008/02/02/how-to-change-etchosts/
如有侵权请联系:admin#unsafe.sh