]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Check that notify message was sent over IPv6
authorMark Andrews <marka@isc.org>
Thu, 4 Apr 2024 00:24:59 +0000 (11:24 +1100)
committerMark Andrews <marka@isc.org>
Thu, 11 Apr 2024 18:05:25 +0000 (18:05 +0000)
bin/tests/system/notify/ns2/example2.db
bin/tests/system/notify/ns2/named.conf.in
bin/tests/system/notify/ns3/named.conf.in
bin/tests/system/notify/tests.sh

index c762dd611dee7c5a86bc69fb3f1c8879689eefac..bc884262c86bf7b25fd3ee8a092883f1dafad268 100644 (file)
@@ -22,6 +22,7 @@ example.              NS      ns2.example.
 ns2.example.           A       10.53.0.2
 example.               NS      ns3.example.
 ns3.example.           A       10.53.0.3
+ns3.example.           AAAA    fd92:7065:b8e:ffff::3
 
 $ORIGIN example.
 a                      A       10.0.0.2
index 203f23ca6e50127460efe855286c552033acecec..3f16e229dbe0dff2fd951f6d034a40b1ad84537f 100644 (file)
@@ -14,6 +14,7 @@
 options {
        query-source address 10.53.0.2;
        notify-source 10.53.0.2;
+       notify-source-v6 fd92:7065:b8e:ffff::2;
        transfer-source 10.53.0.2;
        port @PORT@;
        pid-file "named.pid";
index 4761622651ab4f6ccd9c01be4a7479185f160055..73338a4a30fb2f464a2bfb4bd728221e5260f67d 100644 (file)
@@ -18,7 +18,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.3; };
-       listen-on-v6 { none; };
+       listen-on-v6 { fd92:7065:b8e:ffff::3; };
        recursion yes;
        notify yes;
        dnssec-validation no;
index 788947a6c0db22ffdc3db49cb9e1c87ad0f3f342..d929add54cf15c9bdcd18d8dadf19cef60520e17 100644 (file)
@@ -109,6 +109,7 @@ wait_for_log_re 45 "transfer of 'example/IN' from 10.53.0.2#.*success" ns3/named
 
 test_start "checking notify message was logged"
 grep 'notify from 10.53.0.2#[0-9][0-9]*: serial 2$' ns3/named.run >/dev/null || ret=1
+grep 'refused notify from non-primary: fd92:7065:b8e:ffff::2#[0-9][0-9]*$' ns3/named.run >/dev/null || ret=1
 test_end
 
 test_start "checking example2 loaded"