From a3b2b86e7f57fe48e5d2015a43d0df6c53cb93ce Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 11 Jan 2021 13:14:10 +1100 Subject: [PATCH] Check that A record is accepted with _spf label present --- bin/tests/system/checkzone/tests.sh | 2 +- .../system/checkzone/zones/good-spf-exception.db | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 bin/tests/system/checkzone/zones/good-spf-exception.db diff --git a/bin/tests/system/checkzone/tests.sh b/bin/tests/system/checkzone/tests.sh index f421b437b1..8bab669a50 100644 --- a/bin/tests/system/checkzone/tests.sh +++ b/bin/tests/system/checkzone/tests.sh @@ -17,7 +17,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 index 0000000000..1de8cec52b --- /dev/null +++ b/bin/tests/system/checkzone/zones/good-spf-exception.db @@ -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