Parse DNS domain names using public suffix list from https://publicsuffix.org
Summary
Functions
Check if input is bare suffix
Strip subdomain and suffix, leaving just the name
Strip subdomain, returning name combined with suffix
Parse domain into subdomains, name and suffix
Functions
Check if input is bare suffix
Strip subdomain and suffix, leaving just the name
Strip subdomain, returning name combined with suffix
@spec parse(binary()) :: {:ok, {subdomains :: [binary()], name :: binary(), suffix :: binary()}} | {:error, :unknown_suffix}
Parse domain into subdomains, name and suffix