Download the virt ISO.
When asked how to use the disk, choose sys to set up standard installation.
Install Avahi for mDNS support:
doas apk add avahi
doas rc-update add avahi-daemon
doas rc-service avahi-daemon start
This will allow you to access the machine via hostname.local on the local network, but not the other way around.
If you need alpine to resolve mDNS addresses… Well, it’s complicated and requires running a whole ass DNS server.