Library to work against complex domain names, subdomains and URIs.
github.com/remusao/tldts
remusao/tldts