DNS caching not working on second MK

Hello all,

I have 2 service towers with mikrotiks at each. One tower is the main, where I get all my bandwidth. It is connected to the second tower via a PTP wireless link.

I am running DHCP on both MKs. Also, the primary one has DNS caching running on it, works fine. I cannot, however, get DNS caching to work on the second Mikrotik. It only is caching my local IPs and names, about 6 lines only.

I would like to get this going on the second Mikrotik to make service on that tower faster and save a little bandwidth. It is a 750G running software v5.14.

Can someone help me with this?

Thanks!

Does your second NS actually receive queries by some client?

Try to “manually” send a query; assuming that its IP addess is 1.2.3.4:

from a unix shell:

dig @1.2.3.4 www.mikrotik.com

from a windows command prompt:

nslookup www.mikrotik.com 1.2.3.4

If everything works as expected you should receive a correct response and it should also appear into the cache of the queried NS.

Regards,
rock

Ok from a Windows machine I ran your command.

I got this response:

DNS request timed out.
timeout was 2 seconds.
Non-authoritative answer:
name: www.mikrotik.com
address: 159.148.147.196

I checked the cache on the second Mikrotik, some entries were added for the request. So why is it not filling up with more data? I have the users systems with the second mikrotik (the one in question) as the first assigned DNS server.

Ok, I didn’t have my reverse DNS entries setup correctly on one of my DNS servers.

Running the command again, it is reporting correctly now.

But, the cache is not being filled. It is still at 33 items, which is what it was after I ran the command.

Any suggestions?

Are you sure your clients have this router configured as the primary DNS server?

Yes, I went in to each client and released and renewed their IP.

Does this matter: This Mikrotik has a private IP address instead of a public one…Problem?

At “new DNS static entry” fill in the IP address of your router board that you used as a dns server and give it a name Normally should then work

I already have that in there, as well as have given it a name. It is the first DNS server in that list.

In the place to use www.mikrotik.com use a different name for example, dns server1.XX
Goodluck

Well, rebooted the radio that my customers are connected to, afterwards caching on the MK started working…

Great, success