subdo-to-domain split subdomain to domain using python3 Sample: Install: pip3 install tldextract Input : sub.domain.com Result : domain.com