Adding host records to OS/X
Adding Host Records is pretty straight forward. Typically I do this when I’m running a local virtual machine or for testing services. Slightly different then Linux because of OS/X DNS caching services.
- Edit /private/etc/hosts
- Add my.domain.name
- Flush the cache
sudo vi /private/etc/hosts
sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder