diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 83e56caedc..1a5be3091c 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -3735,10 +3735,19 @@ function phpbb_checkdnsrr($host, $type = 'MX') { return true; } + break; default: - case 'A': case 'AAAA': + // AAAA records returned by nslookup on Windows XP/2003 have this format. + // Later Windows versions use the A record format below for AAAA records. + if (stripos($line, "$host AAAA IPv6 address") === 0) + { + return true; + } + // No break + + case 'A': if (!empty($host_matches)) { // Second line