summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--whois.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/whois.c b/whois.c
index 0e7f6b8..8b2183f 100644
--- a/whois.c
+++ b/whois.c
@@ -633,9 +633,9 @@ char *queryformat(const char *server, const char *flags, const char *query)
/* add useful default flags if there are no flags or multiple arguments */
if (isripe) { }
else if (strchr(query, ' ') || *flags) { }
- else if (streq(server, "whois.denic.de") && domcmp(query, ".de"))
+ else if (streq(server, "whois.denic.de") && in_domain(query, "de"))
strcat(buf, "-T dn" DENIC_PARAM_ACE DENIC_PARAM_CHARSET " ");
- else if (streq(server, "whois.dk-hostmaster.dk") && domcmp(query, ".dk"))
+ else if (streq(server, "whois.dk-hostmaster.dk") && in_domain(query, "dk"))
strcat(buf, "--show-handles ");
/* mangle and add the query string */