summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-08-21 22:47:06 +0200
committerLennart Poettering <lennart@poettering.net>2015-08-21 22:47:06 +0200
commit0a18f3e59f887f27431759443374cd559fce729d (patch)
treea61f639d919b5adc55e40a0e0d9a2629b98b5940
parentef7051360aefca01d20f700ee74ac1baced59879 (diff)
resolved: add reference to negative caching RFC
-rw-r--r--src/resolve/resolved-dns-cache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-cache.c b/src/resolve/resolved-dns-cache.c
index eb51b4b895..751e961351 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;