Host name settings?

Discussion in 'Mac OS X Server, Xserve, and Networking' started by Celeron, Aug 1, 2011.

  1. Celeron macrumors 6502a

    Mar 11, 2004
    Is there a recommended procedure for installing / setting up Server with regards to the host name configuration? I've been doing it like this:

    1. Install Lion.

    2. Set the server name in the "Sharing" panel of System Preferences.

    3. Install

    4. Use Change Host name wizard to change it to the fully qualified host name, such as ""

    5. Configure all my services.

    Is this the proper way to do this? I'm finding annoying side effects, like iChat only accepting logins when the user name is "" instead of "" which is what I expect.

    Any input or suggestions would be most helpful!
  2. jackhdev macrumors 6502

    Apr 9, 2011
    Bismarck, North Dakota
    Yes, that is how you should do it. Set up your host name to be instead of Also, which ports do you use to access the iChat service?
  3. Celeron thread starter macrumors 6502a

    Mar 11, 2004
    I thought of using just the domain name but the documentation from seems to suggest it needs to be a hostname and not just a domain name.

    I'm using whatever the standard ports are for iChat. I'm only testing it internally now, so its 5222 or 5223.
  4. Celeron thread starter macrumors 6502a

    Mar 11, 2004
    I figured out the ichat thing without having to redo the hostname stuff. Just configure an extra domain via serveradmin:

    sudo serveradmin settings
    jabber:hostsCommaDelimitedString = ","

    Then, bounce the iChat service:
    sudo serveradmin stop jabber
    sudo serveradmin start jabber

    Now I can login using "" and it works fine. Woot.
  5. foidulus macrumors 6502a

    Jan 15, 2007
    Maybe Lion fixed this, but I recall that sometimes just changing the name in the sharing preference pane doesn't set the hostname necessary for certain unix services to work.

    You can verify this with the scutil command

    scutil --get HostName

    if the hostname is wrong, you can set it with

    sudo scutil --set HostName (your host name)
  6. rwwest7 macrumors regular

    Sep 24, 2011
    Not fixed, you have to use or else it's still the old name.

Share This Page