]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add non canonical form entry to trigger log message
authorMark Andrews <marka@isc.org>
Mon, 25 Aug 2025 01:19:37 +0000 (11:19 +1000)
committerMark Andrews <marka@isc.org>
Tue, 2 Sep 2025 23:43:46 +0000 (23:43 +0000)
(cherry picked from commit 76db9e276f5180c41dd8492a08b1396377903973)

bin/tests/system/rpz/test2
bin/tests/system/rpz/tests.sh

index ad71e3ae568fc8d9f041b6942fb64bd0a6240efe..8ef4296c96bda6b52ba1ca4f1183a375d80aa00d 100644 (file)
@@ -51,7 +51,11 @@ update add  32.2.5.168.192.rpz-ip.bl 300 A   127.0.0.2
 ; prefer first conflicting IP zone for a5-3.tld2
 ;      12
 update add 32.3.5.168.192.rpz-ip.bl    300 A   127.0.0.1
+; non canonical form entry to trigger log message
+update add  128.2.0.0.0.0.3.2.2001.rpz-ip.bl   300 CNAME .
 send
+
+;
 update add 32.3.5.168.192.rpz-ip.bl-2  300 A   127.0.0.2
 send
 
index 2404c9f4ba1849c58000073ca34f4dd32cebb4d1..917887ebca16ca83261c6fa1d96d1a8e7d85b21c 100644 (file)
@@ -549,6 +549,8 @@ ckstats $ns5 test1 ns5 0
 ckstats $ns6 test1 ns6 0
 
 start_group "IP rewrites" test2
+msg='rpz IP address "128.2.0.0.0.0.3.2.2001" is not the canonical "128.2.zz.3.2.2001"'
+grep "$msg" ns3/named.run >/dev/null || setret "expected 'is not the canonical' message not logged"
 nodata a3-1.tld2                    # 1 NODATA
 nochange a3-2.tld2                  # 2 no policy record so no change
 nochange a4-1.tld2                  # 3 obsolete PASSTHRU record style