Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
Don't put the answer in the question. Leave the answer as an answer. Comment on the accepted answer if you must. – Jason Salaz Sep 17 '11 at 0:17
up vote 6 down vote accepted

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

share|improve this answer
Ah, so simple, thanks. – Caffeine Coma Sep 16 '11 at 21:04

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.

share|improve this answer
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 '11 at 22:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.