eworm-de / routeros-scripts

a collection of scripts for MikroTik RouterOS
GNU General Public License v3.0
1.27k stars 285 forks source link

Implement IPv6 DNS records creation #49

Open KuxaBeast opened 10 months ago

KuxaBeast commented 10 months ago

Solves #48 and #50.

Implementation details

IPv6 records are created based on DHCPv4 leases, so this feature is only useful on dual-stack deployments. The AAAA records are only created if neighbor discovery returns reachable status and removed only if not reachable or stale.

The separation of networks is done by the DHCP servers' bound interfaces rather than by the network domains. This implementation made more sense, imho, even though there might be similar records across multiple DHCP networks with the same domain set.