In MacOS, you can do dig whatever.local
and get some results if you have the entry in a local DNS (like pi-hole) but curl, or browsing will fail.
This is because Apple enforces that .local domain is only discovered by the mDNS Bonjour service (more info)
To solve this, I decided to run the avahi-daemon in my local Raspberry-pi to publish additional services.
I decided to use the avahi-aliases project to simplify publishing more than one service on the same IP as the default avahi-daemon doesn't allow this at the moment
Some important links: