(03-22-2019, 08:25 PM)Bizarrus Wrote: I've written now an TLD-HelperClass for some extended domain names.
Here i'm using the public TLD-List from https://publicsuffix.org/list/public_suffix_list.dat.
Here is the Result:
PHP Code:stdClass Object
(
[prefix] =>
[domain] => example
[suffix] => co.uk
[original] => example.co.uk
)
stdClass Object
(
[prefix] => testing.example.somewhere
[domain] => example
[suffix] => co.uk
[original] => testing.example.somewhere.example.co.uk
)
stdClass Object
(
[prefix] => subdomain
[domain] => example
[suffix] => co.uk
[original] => subdomain.example.co.uk
)
stdClass Object
(
[prefix] => subdomain
[domain] => example
[suffix] => de
[original] => subdomain.example.de
)
stdClass Object
(
[prefix] =>
[domain] => example
[suffix] => com
[original] => example.com
}
I will commit the new version, if i had implemented the renewing process.
Relying on a third-party list seems a bit unreliable to me - especially as it slowly goes out of date and would need an update...
As Sentora already separates domains from subdomains, surely the above conditional that I suggested could be applied to only domains (and not any subdomains)? Sentora will always add a www alias to any domains added to the system, so why not just follow this behaviour and keep it simple?
Keith.