':param url: The url to parse.
:return: Returns a boolean that indicates if <url>\'s domain is valid'

def is_valid_domain(self):

    domain_re = '[a-z0-9-]+(\\.[a-z0-9-]+)*(:\\d\\d?\\d?\\d?\\d?)?$'
    return (re.match(domain_re, self.netloc) is not None)
