I have a Rocky Linux VM running on a Synology NAS as host.
The RL VM is virrtually networked into the NAS. It has (on the LAN) the IP address 192.168.0.25 and I can ping it from the Synology via ping 192.168.0.25.
The Synology NAS I login to via ssh from my Mac. Luckily I can also ping the Rocky Linux VM from my Mac. So the VM is visible on the full LAN.
Inside Rocky Linux I gave the machine on install the domain name rocksolid.local.
However when I issue
ping rocksolid.local
from my Mac terminal or from the Synology shell it does not resolve: I get the error (on the Mac):
Then again, I donāt know how Mac does it, but I presume it to be similar to what Linux uses.
Which is typically āfiles dnsā. When given a name, local āfileā is checked first. If the name appears, the IP address from that entry is returned. If there is no result from files, then go for dns.
Network config on the Mac should set one (or more) DNS servers. A query is sent to server.
If server knows the name, it returns an address. (It might forward query to other servers, if it does know the name.)
So, who are the DNS servers that the Mac and Synology do query from? Can you configure them to return ā192.168.0.25ā for the ārocksolid.localā?
On RL the āfilesā is /etc/hosts, but Mac and Syno might use something different.
You can also install/start the avahi-daemon, which is Linux implementation of mDNS (bonjour).
This protocol allows the devices to broadcast a DNS request on a local network to ask hosts directly about their names and services they offer, so you do not need to configure a DNS server or static /etc/hosts files.
If ā.localā is really your TLD, then you need to do one of two things, either turn off Bonjour on your Mac and Avahi on Linux, or change ā.localā to something else (āhome.arpaā perhaps), ā.localā is reserved for mdns.
I can tell you my RL9 desktop came with avahi-daemon preinstalled, it only was not preenabled. It is also the preinstalled mdns daemon for Ubuntu. So I think you will be fine using it.
No, DNS and mdns are different and will interfere with each other if you use a ā.localā TLD. I say this from experience, using ā.localā with mdns always ends in tears. I know that at one time Microsoft recommended using it, but it was only for a short while and they have since stopped doing so.