From: Mark Andrews Date: Tue, 18 Oct 2022 01:19:35 +0000 (+1100) Subject: Support starting and stopping IPv6 only servers X-Git-Tag: v9.19.8~53^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a35c34e10f69588ba12052b0f0c978514810a2a1;p=thirdparty%2Fbind9.git Support starting and stopping IPv6 only servers Look for $testdir/$server/named.ipv6-only and use fd92:7065:b8e:ffff::$n instead of 10.53.0.$n to communicate with the server. --- diff --git a/bin/tests/system/start.pl b/bin/tests/system/start.pl index 04ff11f6143..2a2d7809f7d 100755 --- a/bin/tests/system/start.pl +++ b/bin/tests/system/start.pl @@ -426,8 +426,13 @@ sub verify_ns_server { $tcp = ""; } + my $ip = "10.53.0.$n"; + if (-e "$testdir/$server/named.ipv6-only") { + $ip = "fd92:7065:b8e:ffff::$n"; + } + while (1) { - my $return = system("$DIG $tcp +noadd +nosea +nostat +noquest +nocomm +nocmd +noedns -p $port version.bind. chaos txt \@10.53.0.$n > /dev/null"); + my $return = system("$DIG $tcp +noadd +nosea +nostat +noquest +nocomm +nocmd +noedns -p $port version.bind. chaos txt \@$ip > /dev/null"); last if ($return == 0); diff --git a/bin/tests/system/stop.pl b/bin/tests/system/stop.pl index bd5c04b4195..9c6a39a84ee 100644 --- a/bin/tests/system/stop.pl +++ b/bin/tests/system/stop.pl @@ -182,6 +182,10 @@ sub stop_rndc { } my $ip = "10.53.0.$n"; + if (-e "$testdir/$server/named.ipv6-only") { + $ip = "fd92:7065:b8e:ffff::$n"; + } + my $how = $halt ? "halt" : "stop"; # Ugly, but should work.