]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add ans10 blackhole server to xfer system test
authorMichal Nowak <mnowak@isc.org>
Fri, 12 Dec 2025 13:51:32 +0000 (14:51 +0100)
committerMichal Nowak <mnowak@isc.org>
Tue, 6 Jan 2026 20:17:48 +0000 (21:17 +0100)
On FreeBSD 15.0, sending requests to non-existent address produces
unexpected results. Add a blackhole server instead.

bin/tests/system/xfer/ans10/ans.py [new file with mode: 0644]
bin/tests/system/xfer/ns6/named.conf.j2

diff --git a/bin/tests/system/xfer/ans10/ans.py b/bin/tests/system/xfer/ans10/ans.py
new file mode 100644 (file)
index 0000000..6f5346f
--- /dev/null
@@ -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()
index 9261f0dd4e12c77330ea1880c8b5bad621e63de9..9fe63bd62e894e7c3ca20b8e2613bd155989cb84 100644 (file)
@@ -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";
 };