I have a Dynamic DNS domain set up with my hosting provider. My hosting provider has provided me with a URL that when loaded updates their system with my current WAN IP. So all I need to do is regularly connect to that URL. How can I best do that with my MikroTik router?
Can I just set up a schedule and put the URL in the “On Event” like this:
From reading the docs though, it seems like the On Event item needs to have a script. So then what do I need to do to write a simple script that just calls the URL? I’ve seen other scripts for DDNS that look to be getting the IP address of the interface, etc. I don’t need to do that. I just need to go to that URL. If done this in a script? Will that work? I tried it and the router seemed to respond OK - I didn’t get any errors or anything…
Can someone provide me with some pointers on doing it the correct way?
Thanks! I got it working. The logs did the trick. At first, I was just getting a “400 error” but after reading about enabling Fetch in logging, it showed me where my error was occurring. There was a line break for some reason in my URL. Once I took that out, it works!