/mikrotik-scripts

MikroTik RouterOS scripts

Primary LanguageHTMLISC LicenseISC

MikroTik RouterOS scripts

Online RTTTL converter/script generator: Web page

Because your router has a beep command, and you must use it to its full potential.


Static DNS records for DHCP leases: dhcp-dns.rsc

What makes this script different from the many other scripts that do DHCP-DNS sync is the following:

  • DHCP names are cleaned to conform to RFC 1123
  • Conflicting DHCP names will always use the latest entry
  • Custom DNS entries cannot be accidentally overridden by DHCP
  • Comments are used to distinguish between custom DNS entries and DHCP DNS entries
  • Multiple copies of the script can be run to work with more than one DHCP server

Dual WAN failover: wan-dhcp-failover.rsc

This script can be used when both WAN interfaces use DHCP for their public IPs and gateways. It updates static routes for the ping targets accordingly. Note, this script has only been tested in RouterOS 7.


dns.he.net dynamic DNS updater: hurricane-electric-ddns.rsc

A simple, non-spammy script to update DDNS hosted at Hurricane Electric. It caches the last known public IP and doesn't request an update unless that value changes.