From: Lennart Poettering Date: Fri, 21 Aug 2015 20:47:06 +0000 (+0200) Subject: resolved: add reference to negative caching RFC X-Git-Tag: v225~35^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a18f3e59f887f27431759443374cd559fce729d;p=platform%2Fupstream%2Fsystemd.git resolved: add reference to negative caching RFC --- diff --git a/src/resolve/resolved-dns-cache.c b/src/resolve/resolved-dns-cache.c index eb51b4b..751e961 100644 --- a/src/resolve/resolved-dns-cache.c +++ b/src/resolve/resolved-dns-cache.c @@ -458,6 +458,10 @@ int dns_cache_put( if (r > 0) continue; + /* See https://tools.ietf.org/html/rfc2308, which + * say that a matching SOA record in the packet + * is used to to enable negative caching. */ + r = dns_answer_find_soa(answer, q->keys[i], &soa); if (r < 0) goto fail;