]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: add reference to negative caching RFC
authorLennart Poettering <lennart@poettering.net>
Fri, 21 Aug 2015 20:47:06 +0000 (22:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Aug 2015 20:47:06 +0000 (22:47 +0200)
src/resolve/resolved-dns-cache.c

index eb51b4b8957335a269ad4bc03d99c1d377649e79..751e961351467077d982ef0df2a26a88bacfff13 100644 (file)
@@ -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;