This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MikroTik (RouterOS) script for automatically setting DNS records | |
# for clients when they obtain a DHCP lease. | |
# | |
# author SmartFinn <https://gist.github.com/SmartFinn> | |
# based on https://github.com/karrots/ROS-DDNS | |
# modified 20200412 a-a to allow multiple IPs per host | |
# modified 20200417 a-a, add functionality to strip anything after hostname, add variables to control optional features. | |
# Set to "true" if adding multiple IP addresses to the same hostname is acceptable, ie for clients with wireless and a wire. | |
:local allowRoundRobin "true"; |