]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add check-names for svbc (https) server name examples
authorMark Andrews <marka@isc.org>
Mon, 26 Jul 2021 05:43:52 +0000 (15:43 +1000)
committerMark Andrews <marka@isc.org>
Wed, 18 Aug 2021 03:49:48 +0000 (13:49 +1000)
bin/tests/system/checkzone/tests.sh
bin/tests/system/checkzone/zones/bad-svcb-servername.db [new file with mode: 0644]
bin/tests/system/checkzone/zones/good-svcb.db

index 8bab669a50e7de740784c8331bbc0e082852af5f..c9614a4b656c15de4372578a60f76e89cd50ec88 100644 (file)
@@ -37,7 +37,7 @@ do
        echo_i "checking $db ($n)"
        ret=0 v=0
        case $db in
-       zones/bad-dns-sd-reverse.db)
+       zones/bad-dns-sd-reverse.db|zones/bad-svcb-servername.db)
                $CHECKZONE -k fail -i local 0.0.0.0.in-addr.arpa $db > test.out.$n 2>&1 || v=$?
                ;;
        *)
diff --git a/bin/tests/system/checkzone/zones/bad-svcb-servername.db b/bin/tests/system/checkzone/zones/bad-svcb-servername.db
new file mode 100644 (file)
index 0000000..91fc2df
--- /dev/null
@@ -0,0 +1,15 @@
+; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+;
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
+;
+; See the COPYRIGHT file distributed with this work for additional
+; information regarding copyright ownership.
+
+$TTL 600
+@              SOA     ns hostmaster 2011012708 3600 1200 604800 1200
+               NS      ns
+ns             A       192.0.2.1
+
+svcb           SVCB    1 _underscore.example. port=60 alpn=h3 ech="ZWFzdGVyIGVnZyE="
index e94916402cdd2cc03ad32f482be2ddc0d88925fa..8b1e4f8a01ab8864df1fe62bb086ce628faaa7ad 100644 (file)
@@ -21,3 +21,4 @@ svcb5         SVCB    5 . key9999="something"
 svcb6          SVCB    6 . mandatory=port,alpn port=60 alpn=h3
 svcb7          SVCB    7 . mandatory=port,alpn port=60 alpn=h1,h3
 svcb8          SVCB    8 . mandatory=port,alpn port=60 alpn="h1\\,h2,h3"
+svcb9          SVCB    0 44._svbc.example.net.