EdgeRouter Conditional Forwarding Hostnames
Log in to CLI or SSH to Ubiquiti router
configure
set service dhcp-server hostfile-update enable
commit
exit
This will now add names and IP of devices from your DHCP scope to the router's hosts file.