From e2a3cb9590b80b1cba7619f2857fda95d36ada9e Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Sun, 8 Nov 2015 13:23:07 +0100 Subject: Fix derp. AAA is not a valid DNS record type. --- includes/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/utils.php') diff --git a/includes/utils.php b/includes/utils.php index 993300b..887f0d5 100644 --- a/includes/utils.php +++ b/includes/utils.php @@ -261,7 +261,7 @@ function hostname_to_ip_address($hostname) { } foreach ($dns_record as $record) { - if ($record['type'] == 'AAA') { + if ($record['type'] == 'A') { return $record['ipv4']; } } -- cgit v1.2.3