]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Support starting and stopping IPv6 only servers
authorMark Andrews <marka@isc.org>
Tue, 18 Oct 2022 01:19:35 +0000 (12:19 +1100)
committerMark Andrews <marka@isc.org>
Thu, 17 Nov 2022 01:23:45 +0000 (12:23 +1100)
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.

bin/tests/system/start.pl
bin/tests/system/stop.pl

index 04ff11f61434ca6174aa06271610b7c0a389636a..2a2d7809f7d059e972d74af958a1916aeb01def1 100755 (executable)
@@ -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);
 
index bd5c04b419596584407ac7e81659074b9c6fbe04..9c6a39a84eee8ade27102b3b2908b1443ed218f6 100644 (file)
@@ -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.