Hi All,
I'm new to the forum so forgive me if the post is in the wrong place.
Hardware RB751G-2HnD
RouterOS 5.16, 5.24 and 6.0rc11
Problem:
I have been having problems with DNS resolution for the past 2 weeks. Every now and then while browsing the internet, webpages refuse to load. I can however ping 8.8.8.8 so my internet connection is still active. Sometimes flushing the DNS cache seemed to fix the issue but other times not, I then resorted to rebooting the RB. This did not always work.
Eventually my ISP told me to start using the Google DNS servers instead of their own servers, this also solved the problem for a little while. I even set the DHCP client on the gateway interface to "Use Peer DNS".
What I then figured out is that it was sometimes taking longer than 1,5 to 2 seconds to even ping the DNS servers (both Google and the ISP) thanks to the wonderful South African internet. I tried to find a way to set the DNS resolution timeout in v5 but could not find the setting anywhere.
Eventually I upgraded to 6.0rc11 and the problem still persisted.
Solution:
Thank goodness there seems to be an undocumented feature in v6 for DNS:
In terminal I ran the following:
ip dns
set query-server-timeout=4s
This seems to have solved my issue for now (the default value was 2s).
Thank you to the RouterOS developers for adding this!!
Regards,
NonesZA