In an effort to further speed my forward-only proxy cache, I've been experimenting with using a 1-4 hour internal TTL in HostDB(as opposed to the default). Many websites set their DNS TTL extremely low(i.e. 60 seconds), and I'd like to bypass that behavior.
Unfortunately, according to OpenDNS my proxy is still generating roughly 1 DNS lookup per HTTP request. I don't know why.
I've taken a look at the codebase, but frankly it's all state machines in there and I don't possess the skills to identify and fix this problem. I have turned on debugging and can say there does appear to be a lot of DNS activity going on.
If someone could take a look, I'd greatly appreciate it. I'll be happy to help test, also. Thanks!