Problem opening URL with fetch command

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! :slight_smile:

Nobody? :-/
I just need a command to open a website…

Thanks

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

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?

Specify full path with url= parameter. Fetch will download file with your OK, even if URL does not contain any actual filenames.

Fantastic, it’s working now!

Thanks!