diff --git a/src/Doh.php b/src/Doh.php index eea3a6c..3d0c393 100644 --- a/src/Doh.php +++ b/src/Doh.php @@ -103,6 +103,9 @@ public function resolve(string $domain, int $type): ?string if (!preg_match('~^[-.a-z0-9]+$~', $domain)) { return $this->dd("Use ascii"); } + if (strpos($domain, 'xn--') !== false) { + return $this->dd("No to IDNA punycode"); + } $cacheHit = $this->cacheGet($domain, $type); if ($cacheHit) {