dnsproxy: Add cache refreshing logic
authorArjan van de Ven <arjan@linux.intel.com>
Tue, 10 Jan 2012 00:08:56 +0000 (16:08 -0800)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 10 Jan 2012 12:43:57 +0000 (13:43 +0100)
commit043995b76cb890cf9feddb4049f61786a4fa24df
tree5bc798e711d7e7d295a95485e053115ba0aaa7ed
parent8252d73cdc5f1686fef035d6ea8ce27ed29bf5d1
dnsproxy: Add cache refreshing logic

This patch adds logic to the DNS cache where it will refresh, rather than purge,
popular DNS entries when they expire. This will cut down latency for the user,
since he doesn't have to wait for a DNS resolve for his popular entries.

It also makes changing DNS servers (say, when joining a VPN) less expensive,
since the popular entries from the cache will be refreshed after the join,
rather than just being dropped
src/dnsproxy.c