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-2929: adinfo reports a different hostname to what is configured in ADJoin and System Preferences

Mac & PC Management Service ,  

12 April,16 at 11:11 AM

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

When looking in the Centrify System Preferences, or running the command adinfo, the Local Host Name returns as:
Local host name: old-computer-hostname001
However, the Computer Name that is configured in System Preferences > Sharing > Computer Name has been set to:
Computer Name: new-computer-hostname099
Why are the hostnames different?

  • When a Mac joins the network, it gets an IP address from the DHCP server.
  • The expected behaviour is that the Mac will update the DNS to associate its name with that IP address - this is something that Windows does correctly.
  • However Mac systems fail at this and pick up the name previously assigned to that IP address instead. Thus the Mac system's name is set to the old name that was previously associated with that IP.
This has since been fixed with the "addns -U -m" command, which updates the DNS with the correct value whenever the network state changes. 
Note that for this command to be successfully run - Allow Dynamic DNS updates must be enabled on the DNS server (clients need to be permitted to update their own DNS records).
User-added image

It is also recommend to enable the following setting in the DNS:
User-added image

See also the following KB for more information on DNS permissions:

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