diff --git a/src/RdapDns.php b/src/RdapDns.php index 40d4386..df3d24e 100644 --- a/src/RdapDns.php +++ b/src/RdapDns.php @@ -25,7 +25,7 @@ public function getServerForDomain(string $domain): ?string $tlds = $tldServerProperties[0]; foreach ($tlds as $tld) { - if (str_ends_with($domain, $tld)) { + if (str_ends_with($domain, ".{$tld}")) { return true; } }