-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please update this script #4
Comments
I can confirm that script doesn't work on RouterOS 7.5. All values looks like correct, PowerShell script from my Windows machine can change DNS record data using the same values (token, zone and record IDs etc), but Mikrotik with this script can't. There's no any error written to Mikrotik log, it looks like the script worked fine, but in fact there's no any changes in DNS records. |
Hmm.. Im not too sure how to debug your issues but im running RouterOS 7.6 at home and other clients with no issues. |
There's no problem with temp file creation. I've just upgraded my RouterOS to the latest 7.6 version and it looks like the script is working now. I don't know what was a problem, but I didn't edit script. It simply works after Mikrotik was upgraded and rebooted. Thanks. |
I got the same problem on ROS 7.7 version with level 6 license... all the log output is normal without any errors... but the DNS record on CF didn't get refreshed... can't tell what happened. |
The main issue i encounter with the script is that it fails the very first update after you start it for the first time. Try to manually create the temp.ddns.txt file and put in 1.1.1.1 or something similar as long as its not your public IP. Remove the old one from Mikrotik and upload this new one. |
From my end, seems like it failed to send any API call to Cloudflare. And RouterOS doesn't have any response feedback makes things worse. |
Hope fully later ill try to update the whole script so you dont even have to get the record ID anymore and some more validation hopefully. Check back again |
Hmm current IP is blank also for you. What does your script config look like? Make sure to hide your API keys and/or any personal identifiers |
################# CloudFlare variables ################# :global WANInterface "pppoe" :local CFdomain "xxx" :local CFtkn "xxx" :local CFzoneid "xxx" :local CFrecordType "" :local CFrecordTTL "" ######################################################################### :log info "Updating $CFDomain ..." ################# Internal variables ################# ################# Build CF API Url (v4) ################# ################# Get or set previous IP-variables ################# :if ($CFcloud = "false") do={ :if ([/file find name=ddns.tmp.txt] = "") do={ ######## Write debug info to log ################# ######## Compare and update CF if necessary ##### |
that's it. I thought current IP should be blank cause next line is WAN IP haha. And my IP showed in WAN IP correctly. |
I also had several issues with this script, and also solved those:
I can create a PR, if this is still active. |
Doesn't work for me. Please update to new version script.
The text was updated successfully, but these errors were encountered: