Home » Max OS » Edit Mac OS hosts file

Edit Mac OS hosts file

open hosts file in terminal

$ sudo vi /private/etc/hosts

adding host entry

 192.168.0.1 www.eaxample.com

flush cache file to make the hosts file working

$ dscacheutil -flushcache 

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*

*