From ae8eee16cce29ea3ecae95ac19c49b0fa62ff978 Mon Sep 17 00:00:00 2001 From: Patrick Webster Date: Sat, 9 Jul 2011 16:03:02 -0500 Subject: [ticket/10257] Fix AAAA record parsing for old versions of Windows Older versions of Windows use a different output format for AAAA records. PHPBB3-10257 --- phpBB/includes/functions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'phpBB') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index e113a32a87..c878efcd6b 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -3689,8 +3689,13 @@ function phpbb_checkdnsrr($host, $type = 'MX') break; default: - case 'A': case 'AAAA': + 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 + case 'A': if (!empty($host_matches)) { // Second line -- cgit v1.2.1