How to setup hostname resolution for home network

I have a Unifi Dream Machine Pro, with 60-70 devices/computers. I would like to access them by there hostname or the name listed in unifi. I have a DNS server on my Synology NAS which I can manually add names to and that works, but this requires that I assign static address or change them any time the ip changes. I wanted the names of the devices to be added automatically. My solution does not need to be the Synology solution, I have an XCP-ng server and can run a VM for this. I just need some guidance on how to start.

Thank you.

If you run MS Windows DNS, you can allow hosts to auto-update its A record dynamically. I’m sure other open source DNS solutions can do the same.