From: Michal Nowak Date: Fri, 12 Dec 2025 13:51:32 +0000 (+0100) Subject: Add ans10 blackhole server to xfer system test X-Git-Tag: v9.21.17~5^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4c0408d8167efb2ec21b9099a6117d557ed5825;p=thirdparty%2Fbind9.git Add ans10 blackhole server to xfer system test On FreeBSD 15.0, sending requests to non-existent address produces unexpected results. Add a blackhole server instead. --- diff --git a/bin/tests/system/xfer/ans10/ans.py b/bin/tests/system/xfer/ans10/ans.py new file mode 100644 index 00000000000..6f5346ff86c --- /dev/null +++ b/bin/tests/system/xfer/ans10/ans.py @@ -0,0 +1,25 @@ +# Copyright (C) Internet Systems Consortium, Inc. ("ISC") +# +# SPDX-License-Identifier: MPL-2.0 +# +# 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 https://mozilla.org/MPL/2.0/. +# +# See the COPYRIGHT file distributed with this work for additional +# information regarding copyright ownership. + +from isctest.asyncserver import ( + AsyncDnsServer, + IgnoreAllQueries, +) + + +def main() -> None: + server = AsyncDnsServer() + server.install_response_handler(IgnoreAllQueries()) + server.run() + + +if __name__ == "__main__": + main() diff --git a/bin/tests/system/xfer/ns6/named.conf.j2 b/bin/tests/system/xfer/ns6/named.conf.j2 index 9261f0dd4e1..9fe63bd62e8 100644 --- a/bin/tests/system/xfer/ns6/named.conf.j2 +++ b/bin/tests/system/xfer/ns6/named.conf.j2 @@ -87,7 +87,7 @@ zone "axfr-rndc-retransfer-force" { zone "xot-primary-try-next" { type secondary; - primaries { 10.53.0.99 port @EXTRAPORT1@ tls ephemeral; 10.53.0.1; }; + primaries { 10.53.0.10 port @EXTRAPORT1@ tls ephemeral; 10.53.0.1; }; file "xot-primary-try-next.bk"; };