Created
January 9, 2011 12:05
-
-
Save baldowl/771629 to your computer and use it in GitHub Desktop.
Using OS X's Directory Service instead of /etc/hosts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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