From 465aeb1ec9c2d7b1888c69f504c0e3661d3ff361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Thu, 25 Jul 2024 00:58:19 +0200 Subject: [PATCH] fix: identify tld type --- src/Service/RDAPService.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/Service/RDAPService.php b/src/Service/RDAPService.php index 1a92ef4..b48c7a8 100644 --- a/src/Service/RDAPService.php +++ b/src/Service/RDAPService.php @@ -37,9 +37,27 @@ use Throwable; readonly class RDAPService { + /** + * @see https://www.iana.org/domains/root/db + */ const ISO_TLD_EXCEPTION = ['ac', 'eu', 'uk', 'su', 'tp']; const INFRA_TLD = ['arpa']; - const SPONSORED_TLD = ['edu', 'gov', 'int', 'mil']; + const SPONSORED_TLD = [ + 'aero', + 'asia', + 'cat', + 'coop', + 'edu', + 'gov', + 'int', + 'jobs', + 'mil', + 'museum', + 'post', + 'tel', + 'travel', + 'xxx', + ]; const TEST_TLD = [ 'xn--kgbechtv', 'xn--hgbk6aj7f53bba',