how about hostname?
- User
how about hostname?
- Assistant
Short version
• YES – Migration Assistant can copy your old Mac’s host/Bonjour names to the new Mac, but only if you let it migrate “System & Network settings.”
• NO – If you deselect that option (or only migrate user accounts, apps, documents, etc.), the new Mac keeps its own default host/computer names.────────────────────────────────────────
- What macOS actually stores
macOS keeps three related strings (view them with scutil):
Name scutil key Where you see it Computer Name ComputerName Finder sidebar, AirDrop, Sharing pane Local Hostname LocalHostName Bonjour/ *.localname (e.g. “mini-m1.local”)HostName (a.k.a. FQDN) HostName hostnamecommand, SSH banners, directory bindsIf you’ve never manually set HostName, it falls back to LocalHostName.
-
What Migration Assistant does
∙ If “System & Network settings” is selected, it copies /Library/Preferences/SystemConfiguration/preferences.plist, which holds all three names. Result: your new Mac will show the same Computer Name/hostname as the old one after the first reboot.
∙ If you leave that box unchecked, only user-level data moves over; the new Mac keeps its default “MacBook Pro,” “iMac,” etc. -
How to check (after migration)
scutil --get ComputerName scutil --get LocalHostName scutil --get HostName # may print nothing if never set- How to change them if you got the old name but don’t want it
GUI (easiest):
System Settings ▸ General ▸ Sharing ▸ Computer Name → edit.
That updates ComputerName and LocalHostName; HostName will also follow unless you’d previously set it manually.Terminal (full control):
sudo scutil --set ComputerName "My-New-Mac" sudo scutil --set LocalHostName "My-New-Mac" sudo scutil --set HostName "My-New-Mac" # optional- Networking gotchas
If two Macs with identical LocalHostName are online at once, macOS automatically appends a digit (e.g., “mini-2.local”) to avoid a Bonjour conflict—so you’ll notice the duplication right away.
────────────────────────────────────────
Bottom line
Migration Assistant will preserve (and therefore duplicate) the old Mac’s hostname only if you migrate system/network settings. Otherwise the new Mac keeps its own fresh name, and you can always rename it later with one click or three scutil commands. - What macOS actually stores
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.