Looks like for some reason _getHostName()
is forcing the DNS lookup to use -6
when it shouldn't, as that controls how the DNS lookup is made to the DNS server, not the type of address being passed.
This seems to fix it for me:
diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc
index 079480c674..28db31a88c 100644
--- a/src/etc/inc/system.inc
+++ b/src/etc/inc/system.inc
@@ -2802,8 +2802,7 @@ function _getHostName($mac, $ip) {
} else if ($dhcpip[$ip]) {
return $dhcpip[$ip];
} else {
- $ipproto = (is_ipaddrv4($ip)) ? '-4 ' : '-6 ';
- exec("/usr/bin/host -W 1 " . $ipproto . escapeshellarg($ip), $output);
+ exec("/usr/bin/host -W 1 " . escapeshellarg($ip), $output);
if (preg_match('/.*pointer ([A-Za-z_0-9.-]+)\..*/', $output[0], $matches)) {
if ($matches[1] <> $ip) {
return $matches[1];
I need to look through the history and see why it was trying to pass -4 or -6, there may be some other case where that helps that I'm not seeing, or maybe it was an attempt to fix some other behavior that needs a different approach.