Community discussions

MikroTik App
 
User avatar
fbaffoni
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 91
Joined: Fri Feb 22, 2008 2:10 pm

RouterOS 5.6 and 5.14 can't solve DNS using console

Thu Mar 08, 2012 10:42 pm

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.
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Re: RouterOS 5.6 and 5.14 can't solve DNS using console

Fri Mar 09, 2012 2:26 pm

Does the ping work initially? Have you setup DNS in /ip dns?
 
User avatar
fbaffoni
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 91
Joined: Fri Feb 22, 2008 2:10 pm

Re: RouterOS 5.6 and 5.14 can't solve DNS using console

Fri Mar 09, 2012 2:31 pm

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.
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Re: RouterOS 5.6 and 5.14 can't solve DNS using console

Fri Mar 09, 2012 2:38 pm

Can you paste your script? I am no scripting expert but I will try to look at it.
 
User avatar
fbaffoni
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 91
Joined: Fri Feb 22, 2008 2:10 pm

Re: RouterOS 5.6 and 5.14 can't solve DNS using console

Fri Mar 09, 2012 2:48 pm

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.
 
User avatar
fbaffoni
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 91
Joined: Fri Feb 22, 2008 2:10 pm

Re: RouterOS 5.6 and 5.14 can't solve DNS using console

Tue Mar 13, 2012 1:21 am

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!
 
User avatar
TheWiFiGuy
Member
Member
Posts: 351
Joined: Thu Nov 24, 2011 7:26 pm
Location: UK

RouterOS 5.6 and 5.14 can't solve DNS using console

Tue Mar 13, 2012 10:03 am

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.
 
User avatar
fbaffoni
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 91
Joined: Fri Feb 22, 2008 2:10 pm

Re: RouterOS 5.6 and 5.14 can't solve DNS using console

Tue Mar 13, 2012 2:07 pm

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

I will check that you mention
 
User avatar
TheWiFiGuy
Member
Member
Posts: 351
Joined: Thu Nov 24, 2011 7:26 pm
Location: UK

Re: RouterOS 5.6 and 5.14 can't solve DNS using console

Tue Mar 13, 2012 6:40 pm

/system script job print
 
User avatar
fbaffoni
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 91
Joined: Fri Feb 22, 2008 2:10 pm

Re: RouterOS 5.6 and 5.14 can't solve DNS using console

Tue Mar 13, 2012 8:17 pm

/system script job print

Thank you,

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

Who is online

Users browsing this forum: AndHe, Google [Bot], GoogleOther [Bot], whiro and 109 guests