def prepare_query(whois_server, domain):
    """
    Some WHOIS servers have a different way of querying.
    This methods returns an appropriate query for the WHOIS server
    :param domain: The domain to query
    :return: The fitting query
    """
    if whois_server == 'whois.jprs.jp':
        return '%s/e' % domain
    elif domain.endswith('.de') and (whois_server == 'whois.denic.de' or 
        whois_server == 'de.whois-servers.net'):
        return '-T dn,ace %s' % domain
    elif whois_server == 'whois.verisign-grs.com':
        return '=%s' % domain
    else:
        return domain
