Created
September 20, 2015 16:08
-
-
Save jccorrea/af711d56ff7c2e1253a9 to your computer and use it in GitHub Desktop.
change MacOs hostname
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
# This is your fully qualified hostname, for example myMac.domain.com | |
sudo scutil --set HostName <new host name> | |
#Type the following command to change the Bonjour hostname of your Mac: | |
#This is the name usable on the local network, for example myMac.local. | |
sudo scutil --set LocalHostName <new host name> | |
#Optional: If you also want to change the computer name, type the following command: | |
#This is the user-friendly computer name you see in Finder, for example myMac. | |
sudo scutil --set ComputerName <new name> | |
#Flush the DNS cache by typing: | |
dscacheutil -flushcache | |
#Restart your Mac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment