A function to parse out the domain from a net location, url or email