Static DNS Route with Dynamic Address

by the way, if you look at this post, this is what I am trying to accomplish but with CNAME if possible:

/ip dns static
add address=ControlerIPAddress name=unifi

see post:

http://forum.mikrotik.com/t/unifi-discovery/83379/1