]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
check behaviour with invalid notify-source-v6 address
authorMark Andrews <marka@isc.org>
Tue, 23 Apr 2024 01:26:15 +0000 (11:26 +1000)
committerMark Andrews <marka@isc.org>
Wed, 24 Apr 2024 01:10:01 +0000 (01:10 +0000)
This was reported as causing the server to fail to shutdown on
NetBSD.  Look for the expected informational and error messages.

(cherry picked from commit 580c41de0d5c932fccc5f28fcc9476d3e795a25e)

bin/tests/system/notify/ns1/named.conf.in
bin/tests/system/notify/ns1/root.db
bin/tests/system/notify/tests.sh

index 41a46be0d07c5080a37017956cd762edcf65872a..3f20cf1e3f4bd7b69fb8a21c4e672d10df8350f3 100644 (file)
@@ -14,6 +14,8 @@
 options {
        query-source address 10.53.0.1;
        notify-source 10.53.0.1;
+       # invalid notify-source-v6 address
+       notify-source-v6 fd92:7065:b8e:fffe::a35:5;
        transfer-source 10.53.0.1;
        port @PORT@;
        pid-file "named.pid";
index 17780d13f052fe4866353ad70b2c30008f75f155..77b876bb1b300dfd644b569dbc41c56f6b74aa7a 100644 (file)
@@ -19,6 +19,9 @@ $TTL 300
                                )
 .                      NS      a.root-servers.nil.
 a.root-servers.nil.    A       10.53.0.1
+; sends NOTIFY using invalid notify-source-v6 address
+.                      NS      other.root-servers.nil.
+other.root-servers.nil.        AAAA    fd92:7065:b8e:fffe::a35:4
 
 example.               NS      ns2.example.
 ns2.example.           A       10.53.0.2
index 2953e0af487cc8b3b37513dbb06e7646aea4e1dd..befa841afc1d4a15f69e0501adf403fb38136aa9 100644 (file)
@@ -98,6 +98,12 @@ END {
 }' ns2/named.run >awk.out.ns2.test$n || ret=1
 test_end
 
+# See [GL#4689]
+test_start "checking server behaviour with invalid notify-source-v6 address"
+grep "zone ./IN: sending notify to fd92:7065:b8e:fffe::a35:4#" ns1/named.run >/dev/null || ret=1
+grep "dns_request_create: failed address not available" ns1/named.run >/dev/null || ret=1
+test_end
+
 nextpart ns3/named.run >/dev/null
 
 sleep 1 # make sure filesystem time stamp is newer for reload.