]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fix test and add mapage entry
authorTCY16 <tom@nlnetlabs.nl>
Fri, 1 Jul 2022 13:39:13 +0000 (15:39 +0200)
committerTCY16 <tom@nlnetlabs.nl>
Fri, 1 Jul 2022 13:39:13 +0000 (15:39 +0200)
doc/unbound.conf.5.in
testcode/testpkts.c

index e36450bf3b8488d1f24eed7688e88b6ed20420ad..a27a8e779c5fd3d2c3c38689b773169f1353eebd 100644 (file)
@@ -503,6 +503,15 @@ Enable udp upstream even if do-udp is no.  Default is no, and this does not
 change anything.  Useful for TLS service providers, that want no udp downstream
 but use udp to fetch data upstream.
 .TP
+.B upstream-cookies: \fI<yes or no>
+Enable EDNS cookies from upstream connections. DNS Cookies, as specified in 
+RFC 7873 and 9018 provide a limited-protection transaction security mechanism.
+Once a cookie has been exchanged, the resolver and upstream are known to each
+other and requests to the upstream can be exempted from rate limiting, for
+example. Note that RFC9018 specifies that cookies should not be reused for
+multiple outgoing interfaces, which is not supported at this time. The default
+is no.
+.TP
 .B tls\-upstream: \fI<yes or no>
 Enabled or disable whether the upstream queries use TLS only for transport.
 Default is no.  Useful in tunneling scenarios.  The TLS contains plain DNS in
index 0219e6f9482c4fdeb05ee6715fb87648a7d79ff3..af23c9dc21351efb2a4c6764b7c3d51063cf1423 100644 (file)
@@ -1894,9 +1894,8 @@ adjust_packet(struct entry* match, uint8_t** answer_pkt, size_t *answer_len,
 
                                reslen = origlen + 28;
                        } else if (sldns_read_uint16(walk_query+2) == 24) {
-                               /* update the RDLEN and OPTLEN */
+                               /* update the RDLEN */
                                sldns_write_uint16(rdlen_ptr_response, 28);
-                               sldns_write_uint16(walk_response+2, 24);
 
                                /* we fake verification of the cookie and send
                                 * it back like it's still valid. We renew the cookie