public static function getLdapServersForDomain($domain) { $hosts = (new Dns())->getRecord(self::SRV_PREFIX . $domain, DNS_SRV); return is_array($hosts) ? array_column($hosts, 'target') : []; }