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. | |
# modified 20200901 filcab, add a way to have a domain prefix for DHCP-related hostnames | |
# Set to "true" if adding multiple IP addresses to the same hostname is acceptable, ie for clients with wireless and a wire. |