]> 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:01:54 +0000 (09:01 +1000)
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 a09f04d871327a052768e7a23847d8d9af1d9efa..ccf19af8ab39f3e07fbe07dad543bb6f5228ecaf 100644 (file)
@@ -491,6 +491,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