Skip to content

Instantly share code, notes, and snippets.

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

Embed
What would you like to do?
Using OS X's Directory Service instead of /etc/hosts
# Adding a host record.
sudo dscl . -create /Hosts/www.example.com ip_address 10.1.2.3
# Removing that same host record.
sudo dscl . -delete /Hosts/www.example.com
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.