]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
unbound: Implement setting qname minimisation into strict mode
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Jan 2020 16:32:35 +0000 (16:32 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Jan 2020 16:32:35 +0000 (16:32 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/unbound/unbound.conf
src/initscripts/system/unbound

index 755eac9af89739e1131a599fc315de1b785f8af0..ce51f63a0042d72a73cb0192826b1ed7b0fff05d 100644 (file)
@@ -61,6 +61,7 @@ server:
        harden-algo-downgrade: no
        use-caps-for-id: yes
        aggressive-nsec: yes
+       qname-minimisation: yes
 
        # TLS
        tls-cert-bundle: /etc/ssl/certs/ca-bundle.crt
index 42470da05aab2520860b81a6ac94e9e53d8a6e9d..68309bbfdb5201c039777f8d5bf441e0ae0d8af5 100644 (file)
@@ -102,6 +102,13 @@ write_forward_conf() {
        (
                config_header
 
+               # Enable strict QNAME minimisation
+               if [ "${QNAME_MIN}" = "strict" ]; then
+                       echo "server:"
+                       echo "  qname-minimisation-strict: yes"
+                       echo
+               fi
+
                # Force using TCP for upstream servers only
                if [ "${PROTO}" = "TCP" ]; then
                        echo "# Force using TCP for upstream servers only"