My DNS stats¶
The Data¶
Like it or not humans are data generating machines. The generated data creats patterns and it may or may not be useful. In my case, I am running a DNS based adblocker that all my devices are connected to all the time. So I have a log of all my DNS requests that the devices/services/apps are making. In the past 30 days my 3 primary devices, a laptop, mobile and a tablet have made 270,563 DNS queries and the below is the split up of per device queries.
Top queried records¶
Out of all the DNS queries, there will be records that are requested number of times. I took the top 50 most queried records and the distribution looks something like this:
Reason for this excersise¶
Well those were some what interesting plots. But why did I do that? I could put the numbers directly but I wanted to add a little bit of flare to the presentation. The actual idea is to have a rate limiting per client on selected DNS records. For instance if the record youtube.com has been requested from the tab for more than 10 times in a 15 minute window, the client (the tab in this case) will be blocked from making any further DNS queries for that domain. In short this will be a close implementation of the TBF throttling of the linux network stack. This is a WIP and I will keep posting on the progress.