Cannot ping hostname of Mac mini
I am unable to ping the hostname of my Mac Mini.
dhinz@bluebird ~ % ping bluebird
ping: cannot resolve bluebird: Unknown host
The System Settings->General->Name is set to bluebird
The System Settings->General->Sharing->Local Hostname is set to bluebird.local
I've tried using WiFi, Ethernet, and both enabled.
The scutil command returns the following:
dhinz@bluebird ~ % scutil --get HostName
HostName: not set
dhinz@bluebird ~ % scutil --get LocalHostName
bluebird
dhinz@bluebird ~ % scutil --get ComputerName
bluebird
Hostname returns:
dhinz@bluebird ~ % hostname
bluebird.local
I've compared the settings with another Mac and except for a different name all the settings are the same.
I tried resetting DNS using:
dhinz@bluebird ~ % sudo dscacheutil -flushcache; killall -HUP mDNSResponder
That didn't help either. I've checked the router and it has the correct IP address for the Ethernet and WiFi connections. I've tried deleting all entries from DHCP on the router and connected again. Still can't ping my own name.
The other Mac can ping itself and can ping 'bluebird' and gets the correct IP address.
I've looked at the arp tables using 'arp -a' and they don't show anything unreasonable.
What else can I try? Being able to ping the hostname was previously working. Not sure what broke it besides turning off WiFi, Ethernet is still on. I've tried turning WiFi back on and that didn't help. (I was having the problem where the hostname would change to a number, i.e. bluebird (2) then bluebird (3), etc.
I even tried changing the hostname to a different name but can't ping that either. Strangely when I started posting this message I see that the device name that discussions.apple.com found was the name I changed it to (tommy) and back to bluebird.
I'm sure the name / IP address is being cached somewhere. Just can't find it.
Any suggestions?
Mac mini (M4)