There are many ways to determine what the root domain is. One way is analyzing the DNS response from the query to realize it's actually a root domain, or you can just grab the ICANN TLD list and use that to make a determination.

What I'm probably going to do now that I'm building this as a cached DNS service is just walk up the subdomains until I hit the root domain and if any of them have a website then it's fine.

On 2/28/2019 2:39 PM, Antony Stone wrote:
On Thursday 28 February 2019 at 20:33:42, Mike Marynowski wrote:

But scconsult.com does in fact have a website so I'm not sure what you
mean. This method checks the *root* domain, not the subdomain.
How do you identify the root domain, given an email address?

For example, for many years in the UK, it was possible to get something.co.uk
or something.org.uk (and maybe something.net.uk), but now it is also possible
to get something.uk

So, I'm just wondering how you determine what the "root" domain for a given
email address is.


Antony.



Reply via email to