]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
quic: block attempts to DDNS over QUIC...
authorLibor Peltan <libor.peltan@nic.cz>
Mon, 17 Jul 2023 12:37:21 +0000 (14:37 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Tue, 18 Jul 2023 06:30:42 +0000 (08:30 +0200)
...as it doesnt work anyway

doc/configuration.rst
doc/man/knot.conf.5in
doc/reference.rst
src/knot/nameserver/update.c

index a9d8adbb95cecd381985cccda08283f9a56a4ce8..40f92c98c11613c5f40d488bfaf48287b0f5995d 100644 (file)
@@ -261,6 +261,8 @@ all notified sequentially in the specified order.
 A secondary zone may serve as a primary zone for a different set of remotes
 at the same time.
 
+.. _dynamic updates:
+
 Dynamic updates
 ===============
 
index 17c4efa4a01be257dc7c94207008e5ad03416952..c405a6aa260bbec84f299849be4b5e893bbd2219 100644 (file)
@@ -608,6 +608,14 @@ for incoming queries over QUIC protocol.
 Change of this parameter requires restart of the Knot server to take effect.
 .sp
 \fIDefault:\fP not set
+.sp
+\fBNOTE:\fP
+.INDENT 0.0
+.INDENT 3.5
+Incoming DDNS over QUIC isn\(aqt supported.
+The server always responds with SERVFAIL.
+.UNINDENT
+.UNINDENT
 .SH XDP SECTION
 .sp
 Various options related to XDP listening, especially TCP.
index 874dab95bd3eda92c3fd9238340f8d62fbeac85c..b5f19806c14eb1e768b68d05992df4969aa02484 100644 (file)
@@ -665,6 +665,10 @@ Change of this parameter requires restart of the Knot server to take effect.
 
 *Default:* not set
 
+.. NOTE::
+   Incoming :ref:`DDNS<dynamic updates>` over QUIC isn't supported.
+   The server always responds with SERVFAIL.
+
 .. _xdp section:
 
 ``xdp`` section
index f9b7254b959178c3b89e665626c6853054870a51..1168c942734ab0911bee7801ebcdc4dea5a43f56 100644 (file)
@@ -80,7 +80,7 @@ static int update_enqueue(zone_t *zone, knotd_qdata_t *qdata)
 int update_process_query(knot_pkt_t *pkt, knotd_qdata_t *qdata)
 {
        /* DDNS over XDP not supported. */
-       if (qdata->params->xdp_msg != NULL) {
+       if (qdata->params->xdp_msg != NULL || qdata->params->proto == KNOTD_QUERY_PROTO_QUIC) {
                qdata->rcode = KNOT_RCODE_SERVFAIL;
                return KNOT_STATE_FAIL;
        }