]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Check that A record is accepted with _spf label present
authorMark Andrews <marka@isc.org>
Mon, 11 Jan 2021 02:14:10 +0000 (13:14 +1100)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 3 Feb 2021 15:26:32 +0000 (16:26 +0100)
(cherry picked from commit a3b2b86e7f57fe48e5d2015a43d0df6c53cb93ce)

bin/tests/system/checkzone/tests.sh
bin/tests/system/checkzone/zones/good-spf-exception.db [new file with mode: 0644]

index 4c931ed60c355e10a27e999827dd1714236911b0..a8b987e907719736f2d7ebbb65ed5cb8357a0047 100644 (file)
@@ -18,7 +18,7 @@ do
        echo_i "checking $db ($n)"
        ret=0
        case $db in
-       zones/good-gc-msdcs.db)
+       zones/good-gc-msdcs.db|zones/good-spf-exception.db)
                $CHECKZONE -k fail -i local example $db > test.out.$n 2>&1 || ret=1
                ;;
        zones/good-dns-sd-reverse.db)
diff --git a/bin/tests/system/checkzone/zones/good-spf-exception.db b/bin/tests/system/checkzone/zones/good-spf-exception.db
new file mode 100644 (file)
index 0000000..1de8cec
--- /dev/null
@@ -0,0 +1,16 @@
+; 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
+a._spf         A       192.0.2.2
+a._spf_rate    A       192.0.2.2
+a._spf_verify  A       192.0.2.2