def distance_related_by_whois_obj(external_module,domain_a, domain_b):
    global weights
    result = WhoisConsult.get_features_info_by_set_url(external_module, [domain_a,domain_b])
    domains = result.keys()
    try:
        whois_info_a = result[domains[0]]
        whois_info_b = result[domains[1]]
    except Exception as e:
        whois_info_a = result[domains[0]]
        whois_info_b = result[domains[0]]

    distance, feature_distance = get_whois_distance(whois_info_a,whois_info_b)
    return distance <= RELATION_THRESHOLD,distance,feature_distance