docs: def dnsDomainIs(host, domain):
      """
      :param str host: is the hostname from the URL.
      :param str domain: is the domain name to test the hostname against.
      :return: true iff the domain of hostname matches.
      :rtype: bool
      """
      if domain.startswith('.'):
          domain = '*' + domain
      return shExpMatch(host, domain)