]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: dns: implement a LRU cache for DNS resolutions
authorBaptiste Assmann <bedis9@gmail.com>
Thu, 4 May 2017 07:05:00 +0000 (09:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 Jun 2017 09:40:01 +0000 (11:40 +0200)
commitfa4a6630950138cfcb8904855c7517d9fdd472f7
tree656865b54a8eda25fa15498f64ef3147bc9c6b2f
parent729c901c3fcca6f4950e2b0e086e86cc2a73bbde
MINOR: dns: implement a LRU cache for DNS resolutions

Introduction of a DNS response LRU cache in HAProxy.

When a positive response is received from a DNS server, HAProxy stores
it in the struct resolution and then also populates a LRU cache with the
response.
For now, the key in the cache is a XXHASH64 of the hostname in the
domain name format concatened to the query type in string format.
include/proto/dns.h
include/types/dns.h
src/dns.c
src/server.c