Created
April 29, 2011 23:12
-
-
Save felipeelias/949197 to your computer and use it in GitHub Desktop.
manage hosts in os x directory services
This file contains hidden or 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
# list all registered hosts | |
dscl localhost -list /Local/Default/Hosts | |
# register a new host named "test.local" | |
dscl localhost -create /Local/Default/Hosts/test.local IPAddress 127.0.0.1 | |
# remove the test.local host | |
dscl localhost -delete /Local/Default/Hosts/test.local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment