tool fetch mode=http address="" src-path="/" dst-path="/dyndns.checkip. # get the current IP address from the internet (in case of double-nat) :log info ("UpdateDynDNS: previousIP = $previousIP") :log info ("UpdateDynDNS: hostname = $hostname") :log info ("UpdateDynDNS: password = $password") :log info ("UpdateDynDNS: username = $username") So these two are suggestions if you are interested to be added in your official wiki page. If the $previousIP is not set then on each run the script will send an ip update request to the DynDNS server even when the ip has not be changed (this is only noticeable though the logs. So i granted policy permissions also and now everything works. So i noticed here that the suggested permissions write, test, read wasn't enough for the global variable to be set. I tried the script several times with no success but after some debugging i noticed that firstly, the router couldn't resolve the domain ( ) so i found out that the user must have set a DNS IP address under IP->DNS->Servers (maybe this must only be set up in the case you are using a local DNS as i do) and the second one was that the $previousIP variable in the script it seemed that on each run didn't have the previous value. While i was trying to find a script for updating my DynDNS domain i found in the official wiki a page with a script for this purpose. I have also set up Pi-Hole as the local DNS. When the remote requests are enabled, the MikroTik router responds to TCP and UDP DNS requests on port 53. Moreover, MikroTik router can be specified as a primary DNS server under its dhcp-server settings. I have set this router as the main router of my home network which also connects to the internet via PPPoE through the ISP modem. A MikroTik router with DNS feature enabled can be set as a DNS server for any DNS-compliant client. I just bought the HAP AC2 and i'm on the configuration period.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |