Merge branch '4689-test-invalid-notify-source-address-9.18' into 'bind-9.18'

[9.18] Check behaviour using invalid notify source address

See merge request isc-projects/bind9!8973
This commit is contained in:
Mark Andrews 2024-04-24 01:45:59 +00:00
commit 8ca4b44fc5
3 changed files with 11 additions and 0 deletions

View 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";

View 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

View 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.