JUNE 2023 UPDATE: You can now enter static DNS entries under the “Client” settings in UniFi OS v3.0.20 (or above).
Leaving Original Post Below for Reference:
Something I ran into today on my home network, with the Ubiquiti UniFi Dream Machine Pro, is that you can’t add a static DNS entry into the Dream Machine Pro, which totally stinks.. I had a VM that I setup which I needed to refer to by DNS name, but couldn’t.
It seems many others have been asking for this feature as well:
Thankfully a user on the above thread posted a possible workaround with a script calling the API: https://github.com/evaneaston/udm-host-records — I have since implemented this script on the Dream Machine Pro and it worked wonderfully!