Avatar of ISSit
ISSit
 asked on

Names on Mac

We have the strangest of situations.  We have received and imaged 30 macBook systems using DeployStudio.  Looking at several of the systems, the name of the system is different from what is in the Sharing - Computer Name and what shows up when you check Remote Login.  In this case the verbage is- Computer Name: teachspare-mac02, Remote login:  "To log in ... type ssh admin@mc09-macsys-16...
If I check terminal the mc09 name is there.  Stranger still is that if I click edit under Sharing and then click okay, the name mentioned above on remote login changes briefly and then back to mc09... as if it was picking this up from somewhere.  Cannot remote control systems.  How can we fix this naming inconsistency?
Mac OS XApple OSApple Networking

Avatar of undefined
Last Comment
et01267

8/22/2022 - Mon
et01267

Check the /etc/hosts file on the machine, or maybe you have a local DNS server.  The name in the ssh command is coming from the /etc/hosts file or possibly DNS.  

Change the /etc/hosts to be consistent with the name you desire.
strung

Do you have more than one account on the Mac?
ISSit

ASKER
Strung:The systems were newly imaged, so there are no other accounts

et01267: isn´t the /etc/hosts associated with pc´s?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ISSit

ASKER
et01267, sorry, I am relatively new to Macs so did not realize.  I see the hosts file on my home system, will check the problem system tomorrow.
adnan007

Who is setting the computer names? Is your deploy studio giving out names or is the server?
Have you tied the names to the mac addresses?

The way I do it, I use apple net restore, I setup computer names first and let the server give out all the names. I image a computer and when I need to reinstall, they would all get their names via server.

My main poit is check who is giving computer names out, in server admin, under preferences for computers.


robertcerny

You definitely have a local DNS server there, most probably tight to DHCP server which is giving away IP addresses. Maybe a Windows server?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
et01267

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question