RouterOS 5.6 and 5.14 can't solve DNS using console

Hi,

I recently deployed a hotspot system in a small village.
The HW used is Routerboard 1200.
The configuration is simple:
2 ISP,
1 Hospot interface, in this interfase is connected a Rocket M2.

I made a script that check the status of both connections

/ping www.google.com interfase=Ether_ISP1 count=3

(This is not the entire script, but is how check the status)

The problem is that after a few minutes, the routerboard can’t ping anymore. This is caused because through the CLI the routerboard can’t solve the DNS. If I change www.google.com to some_IP_Address, it works fine.

Anyone know why this could be happening?

Thank you for your time.

Does the ping work initially? Have you setup DNS in /ip dns?

Yes, at the beginning works fine for a few minutes. The DNS are configured.

If I reboot the routerboard it work again for a while.

Can you paste your script? I am no scripting expert but I will try to look at it.

Is not a script problem.

If I open a new terminal and try to ping www.google.com, doesn’t work.

SOLVED!!!


If you use a short time interval in the sheduler to ejecute the script, I don’t know why.. but RouterOS stop solving DNS over CLI.

You have to use a schedule time over 1 minute.

Thanks to me!

Check for hung scripts. I have this problem as we ping our access points connected to the gateway controller and then send the results to a web server using fetch. After a while it appears aps are down, but its simpy that the scripts have jammed the jobs active queue.

Thank you, I imagined that something like that could be the cause.

I will check that you mention

/system script job print

Thank you,

Now with the new scheduled interval works fine, and everything is OK.