0

I have a Mac that I joined to a Windows domain. While the machine is off the network and you connect to the terminal it shows the name of the machine as HD_MACPRO. When I connect it to the network this information changes and it thinks it is another name. This name is usually a valid Windows machine on the network. Any thoughts on the cause of this? Could it be taking the name from DNS? If so, how could I avoid this?

MDMarra
  • 100,183
  • 32
  • 195
  • 326
CWL
  • 107
  • 2
  • 12
  • `When I connect it to the network this information changes and it thinks it is another name.` What changes? Where? When? – MDMarra Feb 20 '14 at 02:28
  • @MDMarra *probably* in the terminal. The hostname is pulled from a DNS lookup there and is part of the prompt, and Macs don't update Windows DNS entries. So they often inherit a previous lease owner's name. – Bart Silverstrim Feb 20 '14 at 03:53

1 Answers1

1

The name of the Mac in Terminal is not necessarily going to be the AD name. You set the AD name in Directory Utility, while the name in Terminal is likely coming from DHCP. It appears that we've solved this before:

Ensure Macs get correct machine name from DHCP?

Try the steps listed there to solve the issue.

CC.
  • 1,186
  • 1
  • 10
  • 22
  • The two fixes for me was the following. 1) Enable the "dynamic global hostname" and 2) sudo scutil --set HostName xxx thanks for the info. – CWL Feb 20 '14 at 23:31