Hi,
I am using Cloudns.com for my dynamic DNS.
Updating the dynamic DNS consists of a very simple (fixed) URL that needs to be openend. However, I can’t get it to work from my CRS125…
Even a simple
/tool fetch address="https://www.google.com" mode=https keep-result=no
gives
invalid value for argument address:
while resolving ip: name does not exist
I did read the explanation on http://wiki.mikrotik.com/wiki/Manual:Tools/Fetch
and my DNS is configured fine (ping http://www.google.com works from the terminal window)
so… HELP!
Eduardo
September 1, 2016, 9:11pm
2
Nobody? :-/
I just need a command to open a website…
Thanks
normis
September 2, 2016, 10:05am
3
In the same manual you can see that “address ” is for IP address and you should be using url and path instead.
And your URL needs a filename, you can’t request the whole site.
This would work:
[admin@sviests] > /tool fetch url="http://www.google.com/file.pdf" mode=http
Eduardo
September 2, 2016, 11:17am
4
Thanks for your reply. I did also try url and path, but couldn’t get it to work.
Now that is a problem, because there is no filename.
The “whole site” is actually just 2 characters (“OK”). So there is no way to request this website?
mrz
September 2, 2016, 11:25am
5
Specify full path with url= parameter. Fetch will download file with your OK, even if URL does not contain any actual filenames.
Eduardo
September 2, 2016, 12:04pm
6
Fantastic, it’s working now!
Thanks!