strange problem
when I run this command
/tool fetch url="> http://myip.dnsomatic.com/mypublicip.txt> "
I get this :
failure: unable to resolve hostname
but when I enter the website from the computer I get an answer
how could it be?
Thanks
strange problem
when I run this command
/tool fetch url="> http://myip.dnsomatic.com/mypublicip.txt> "
I get this :
failure: unable to resolve hostname
but when I enter the website from the computer I get an answer
how could it be?
Thanks
Can you resolve other addresses?
I noticed that in Winbox 2, whenever you specify a hostname in some tool (ping comes to mind - e.g. putting www.google.com in the ‘Ping To’ field) that the DNS resolution was actually done by the client and not the Mikrotik itself.
On the command line, though, the Mikrotik does the DNS lookup itself.
Make sure the router has a DNS server configured in /IP DNS.
Thanks ,
I have added to DNS to the router and now it’s working
strange ,
Thanks! ,
If you were expecting to receive the DNS server addresses dynamically from your ISP-
in dhcp-client, be sure the “use peer DNS” is set to yes.
in pppoe-client, under Dial Out, set “use peer DNS” to yes.
EDIT:
I just confirmed that Winbox 3.0 still has the behavior where typing a hostname into “Ping To” will use the client’s DNS resolver, and not the remote Mikrotik’s. I put a hostname into the ping tool, and the Mikrotik tried to ping to my office’s internal IP and not the public IP that external hosts would get from DNS.
Unfortunately this is known thing that mikrotik believes it is for good. I am not with them. Everything should happen in router and not in winbox IMHO.
There are many things that fall into this category. ![]()