Skip to content

Instantly share code, notes, and snippets.

@baldowl baldowl/gist:771629
Created Jan 9, 2011

What would you like to do?
Using OS X's Directory Service instead of /etc/hosts
# Adding a host record.
sudo dscl . -create /Hosts/ ip_address
# Removing that same host record.
sudo dscl . -delete /Hosts/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.