Wednesday, March 12, 2014

How to edit the Hosts file on a Mac 10.7.5

1.sudo nano /private/etc/hosts

2.Add entry as such:

0.0.0.0     www.yahoo.com

3.DNS flush:
dscacheutil -flushcache;sudo killall -HUP mDNSResponder

No comments:

Post a Comment