Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-4793: Changing the hostname of a Mac that is bound to a domain with Centrify

Mac & PC Management Service ,  

12 April,16 at 11:17 AM

Applies to: All versions of Centrify DirectControl on Mac OS X

How to change the hostname of a Mac that is currently bound to the domain with Centrify?

To change the hostname of a Centrify-bound system, it first needs to be taken off the domain.
For more information on this, see also the following KB:  

Mac-specific Instructions:
  1. Unbind the Mac from the domain and delete the computer object from AD
    • This can be done either via the Centrify Join Assistance on the Mac and then manually deleting the computer object in ADUC.
    • Or it can also be performed via command-line on the Mac:
      • sudo adleave -r -u domain_admin_username
  2. Delete the DNS record of the Mac from the DNS server
  3. Go back to the Mac and run the following commands:
    • sudo scutil --set HostName MAC-HOSTNAME
    • sudo scutil --set LocalHostName MAC-HOSTNAME
    • sudo scutil --set ComputerName MAC-HOSTNAME
    • (Where "MAC-HOSTNAME" is the desired hostname for this Mac in AD)
  4. Once the name properties are all aligned, rebind the Mac to the domain.
scutil command changing the name of a Mac.

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.