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?

2
  • When I connect it to the network this information changes and it thinks it is another name. What changes? Where? When?
    – MDMarra
    Feb 20, 2014 at 2: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. Feb 20, 2014 at 3:53

1 Answer 1

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.

1
  • 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, 2014 at 23:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .