#homelab story time. I wanted to simplify setup between my nginx & proxy_pass destinations so that I could move my services between nodes without many changes. Sadly nginx doesn't support mDNS for proxy_pass. #mikrotik to the rescue. Used https://finnes.dev/blog/2025/08-09-mikrotik-dhcp-to-dns-synchronization-script/ to synchronize my DHCP assignments into static DNS entries.
I can now use proxy_pass navidrome.servers.${homelab.domain}
Mikrotik is a gift that keeps on giving in my homelab (#crowdsec story for some other time)
Mikrotik DHCP to DNS synchronization script
For some reason i fail to understand, the DHCP server shipped with Mikrotik still has no ability to sync its active hostname leases dynamically to the DNS server itself. So this quite basic LAN feature is something every Mikrotik administrator will have to implement themselves using the Mikrotik scripting tools. How this script functions to sync its DHCP to DNS hostnames is heavily on the work from Daniel Aleksandersen at https://www.ctrl.blog/entry/routeros-dhcp-lease-script.html. I recommend reading it for a explanation for why the script is written in this more way.







