Is there any way I can fix this? I don’t have any other computer in my network with such a name. That’s just macOS being stupid.
@steipete this bug has plagued me for years. It drives me crazy, and the forums are full of people complaining about it, and nothing has ever been done.
Pretty sad, because it would be lovely to have a stable host name to connect, but I have now resorted to memorizing the IP address of my Macs.
@steipete Not sure if this would fix it but here’s what I use whenever I set up a Mac's hostname:
```
HOSTNAME=Luna
sudo scutil --set ComputerName "$HOSTNAME"
sudo scutil --set HostName "$HOSTNAME"
sudo scutil --set LocalHostName "$HOSTNAME"
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "$HOSTNAME"
```
Maybe toggling it to a temp name and back fixes it?