I used to have a Mac hostname as simply "macpro" under Snow Leopard. After doing a clean installation of Lion, then a migration to restore my files, it's now called "Georges-Mac-Pro".

What is the current recommended way to change the hostname (preferably to something that does not include ".local")? From some googling, it appears that $ hostname macpro won't stick permanently.

  • Don't put the answer in the question. Leave the answer as an answer. Comment on the accepted answer if you must. Sep 17, 2011 at 0:17

2 Answers 2


Just put macpro back in the sharing field.

The .local is there to catch fully qualified domain names and help with bonjour - you can't avoid that, but it won't show up anywhere but that pane.

enter image description here


The submenu Sharing under System Settings is the preferred way to change the hostname of your machine.

The .local domain simply means that the IP address will be resolved by the Bonjour ZeroConf service instead of DNS.

  • You only need the edit control if you want a .local host name different than the main name. For example - your mac could be "Mac The Mac" with a mac.local name - all set from the system preference pane. Normally they are the same and the local name has to be more strict about the dns valid characters such as no spaces, etc...
    – bmike
    Sep 16, 2011 at 22:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .