From 271c277ecc570de1ed0f5e38347eb00d987fbbd1 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Wed, 13 Jul 2011 01:05:34 +0200 Subject: [PATCH] [ticket/10257] Slightly adjust comments about AAAA records on Windows XP/2003. PHPBB3-10257 --- phpBB/includes/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index c878efcd6b..121386b769 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -3690,11 +3690,14 @@ function phpbb_checkdnsrr($host, $type = 'MX') default: 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, newer versions of Windows output AAAA in the same way as the A records + // No break + case 'A': if (!empty($host_matches)) {