parse-domain

Splits a hostname into subdomains, domain and (effective) top-level domains

ds-parse-url

Splits an url into sub-domain, domain and effective top-level-domain and also parses lax urls in one step