def =~(domain)
      labels.zip(domain.labels).all? { |r, d| ["*", d].include? r }
    end
def =~(domain)
      labels.zip(domain.labels).all? { |r, d| ["*", d].include? r }
    end
match against a domain name. the domain must be an instance of DomainName