resolved: when receiving a TTL=0 RR, only flush that specific RR
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Dec 2015 18:22:26 +0000 (19:22 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Dec 2015 18:22:26 +0000 (19:22 +0100)
commitf5bdeb01e4c9f479aaa31cebfa6cfa85ae8a7336
tree3fab4b204f1f66772ac2e681cec2482c5b849a11
parent1f97052fe0e90781b6e4caac0ecd104bd2bf54e6
resolved: when receiving a TTL=0 RR, only flush that specific RR

When we receieve a TTL=0 RR, then let's only flush that specific RR and
not the whole RRset.

On mDNS with RRsets that a shared-owner this is how specific RRs are
removed from the set, hence support this. And on non-mDNS the whole
RRset will already be removed much earlier in dns_cache_put() hence
there's no reason remove it again.
src/resolve/resolved-dns-cache.c