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).
It is also recommend to enable the following setting in the DNS:
See also the following KB for more information on DNS permissions: