Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MOM20xx

macrumors member
Original poster
Aug 24, 2021
35
9
Hi,

after Upgrading from mac os sonoma 14.7.2 to 15.1.1 on my wifes macbook pro m1 which is connected via WLAN and uses private Mac Address the hostname in terminal is changed to MacBookPro.

on my imac m1 connected via ethernet and also upgraded from mac os sonoma 14.7.2 to 15.1.1 the terminal shows the configured hostname.

on both machines

sudo scutil --get HostNames results with

HostName: not set

Whats going on here? Is this a bug or a new feature on the macbook? Why is Terminal showing here MacBookPro as hostname. Has anyone else noticed this?
 
Look at General -> Sharing in System Settings. At the bottom, see what Local hostname shows.

DS
 
  • Like
Reactions: doogm
scutil was outdated in 2010.
"With modern MacOS releases from Mac OS X Mavericks and newer, you can also use the hostname command with a flag to set the hostname to be permanently changed"
https://osxdaily.com/2010/09/06/change-your-mac-hostname-via-terminal/
Even in Sonoma scutil --get HostName returns HostName: not set, while hostname returns the correct value set in Sharing.
ok i did the hard long test.

macbook pro m1 13" with sequoia 15.1.1 connected via wlan to internet. foobar.local set as hostname in Sharing

case 1 wlan settings private mac off and doing a reboot --> after reboot terminal prompt shows foobar hostname returns foobar

case 2 wlan settings private mac rotating and doing a reboot -> after reboot terminal prompt shows foobar hostname returns foobar.local

case 3 wlan settings private fixed and doing a reboot -> after reboot terminal prompt shows MacBookPro hostname returns MacBookPro.

is it clear now what i'm meaning? and should this be so in sequoia 15.1.1 or is this a bug. can't find any info about this change documented by apple.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.