In Sharing, my iMac is called 'iMac Quad'. But right below it, its now saying new-host-3.home as well.


This also appears that it would then be on two domains - .local and .home.

How do I correct this? If I change the computer name, it won't change this.


Unfortunately the computer name and host name can get out of sync. Open a terminal window and use

sudo hostname <new hostname>

to change the hostname. Once executed, it changes the system configuration, so the new hostname will be there when you reboot.

Also, be aware that some DHCP servers will assign a hostname. Depending on the network you attach to and the DHCP server configuration you may have to work with the network administrator if you need to use a different hostname. You don't have to worry about this for most consumer grade routers.

| improve this answer | |
  • This is on a home computer, with a Verizon FiOS router and then an Airport Extreme. I am familiar with hostname, just trying to find out how to trace what happened here. – jmlumpkin Mar 23 '12 at 17:21
  • @jmlumpkin I haven't figured out the sequence of events that occurs that causes them to diverge. They are used for different things, so while OS X seems to make an effort to keep them the same, it doesn't force them to be the same, and I suppose there are situations where one might want them to diverge. – Adam Davis Mar 23 '12 at 17:29
  • 1
    I finally got a chance to do this. I think part of the hostname was due to some network changes I was doing to test Find My Mac. And then I found the config in my router for the domain. – jmlumpkin Mar 25 '12 at 15:50

You must log in to answer this question.

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