I use dnsmasq to cache my DNS lookups. That's good.
I power off my system at the end of my day, which means I lose my DNS cache. That's bad.
I pondered whether I could extract (grep/sed/awk/etc.) data from the dnsmasq logs to create a second hosts file for dnsmasq. I already use a secondary hosts file with dnsmasq to provide ad blocking (works great too!). I was thinking I could append that second hosts file from the dnsmasq logs. The file would grow very large and I don't know where the point of no return might be where performance would be impacted.
Is this idea feasible?
Second, how would I handle stale IP addresses? Possibly sort | uniq?
Thanks again.