I’m using a MikroTik cAP ac and I have configured a small DNS cache size on the device. Because of this, the log is constantly filled with messages like:
dns, error: cache full, not storing
dns, error: cache full, not storing[ignoring repeated messages]
The number of these messages is very high and it makes it difficult to review more important log entries.
What is the best way to prevent these messages from appearing in the logs?
Is there a recommended configuration to avoid DNS cache overflow messages, or a way to suppress/filter these specific log entries without disabling DNS logging completely?
The cAP ac has limited memory, so I have configured the DNS cache size to 128 KiB.
Devices in the network send their DNS queries to the router, and the router forwards these queries to an external DNS provider using the DoH (DNS over HTTPS) protocol.
With 128KiB you won't be able to store even 50 records in the cache. But you can also see that from 45 items to 384 items only 80KiB additional memory is used. There is some minimum book-keeping overhead.
You should increase the size to at least 512KiB, that might be able to keep 1000 entries in the cache. But I see no reason why you cannot keep the default cache size of 2MiB. My hAP ac² also only has 128MiB RAM and setting aside 2MiB for the DNS cache is not a problem.
With the latest RouterOS version and the wifi-qcom-ac package, there is very little disk space available on the device.
Because of this, I had to limit the DNS cache size so aggressively.
I just want to stop this specific log message from appearing, but so far I haven’t been able to filter it out successfully.