PublicSuffix can parse and decompose a domain name into top level domain, domain and subdomains.
Simone Carletti
September 10, 2014 8:28am
MIT