Our AV management software lists by hostname, and we are getting duplicates for our Mac users. We've traced it down to this: when a Mac user connects to AnyConnect, something is dynamically changing the computer's hostname. See below of before and after disconnecting.
However the local hostname settings in the UI remain constant regardless of his VPN connction status:
How do we get the hostname to stay static?
Have you tried changing on the client page?
Neither the when-connected nor when-disconnected hostname is in the client list. I don't think it's coming from there.
Have you tried filtering by IP?
I can see his client in the list, but there's no mention anywhere on his connection or his details page of this mystery hostname that VPN gives to his computer when he connects.
Manually update the client device's hostname using the following instructions: https://documentation.meraki.com/General_Administration/Cross-Platform_Content/Rename_a_Client's_Hos... Hostname broadcasted by MDNS gets priority over DHCP and NetBios and hence, the hostname gets updated when the client sends MDNS traffic. Let me know if you have any questions.
I don't care how the client show up on the Meraki dashboard. I am trying to figure out why the hostname on the client itself changes when he connects to the Meraki via AnyConnect, and changes back when he disconnects.
Correct me if i am wrong but I don't see any difference between the two screenshots you posted however the first one is so small I can barely read it.
What AV are you using. I am a Mac user and connect via VPN's constantly and don't have any issue with device hostnames.
First screenshot shows his local hostname to be Davids-MacBook-Pro.local when connected to VPN. When he disconnects, the hostname changes to Davids-MBP.lan. We have no idea where the second value is coming from.
This is not AV related, other than the AV console is how I discovered this weirdness.
To the best of my knowledge, AnyConnect wont touch the host name - however - it does configure the DNS suffix. Perhaps this is configured via the same API on the Mac.
Is the ".lan" suffix present regardless of the network that the user is on?
Is it happening to only this user or all MacOS users?
@BlakeRichardson: We have nothing pushing option 12, but perhaps he does at home?
@Brash: No, the two names are "Davids-MacBook-Pro.local" and "Davids-MBP.lan"
I doubt he would be using that at home. I've just checked and when I connect my mac to a VPN the hostname doesn't change.
Macs use .local so it must be something on your companies end thats doing it.