summaryrefslogtreecommitdiff
path: root/usr.bin/whois/whois.c
diff options
context:
space:
mode:
authorMichael Knudsen <mk@cvs.openbsd.org>2006-06-01 18:17:36 +0000
committerMichael Knudsen <mk@cvs.openbsd.org>2006-06-01 18:17:36 +0000
commit43fa570b5bc2c2c902ac0b4d5d93c6544759b189 (patch)
tree18e0ec0b2201cf9e4d0e2df953cdf87969436c52 /usr.bin/whois/whois.c
parent1da18e2f42442421991b07217fbd3c305fc9b0cd (diff)
Like DENIC, DK-HOSTMASTER is requires extra attention. This makes you
actually get handle information when looking up .dk domains. While there, make the DENIC stuff use the QNICHOST_TAIL symbol. Original diff from Soeren Hansen because I was complaining about this, tweaked by me. ok beck (holding his nose).
Diffstat (limited to 'usr.bin/whois/whois.c')
-rw-r--r--usr.bin/whois/whois.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c
index 769ef9313d5..ceb769e9ce1 100644
--- a/usr.bin/whois/whois.c
+++ b/usr.bin/whois/whois.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: whois.c,v 1.36 2005/07/22 14:23:13 henning Exp $ */
+/* $OpenBSD: whois.c,v 1.37 2006/06/01 18:17:35 mk Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -194,8 +194,11 @@ whois(const char *query, const char *server, const char *port, int flags)
}
if (strcmp(server, "whois.denic.de") == 0 ||
- strcmp(server, "de.whois-servers.net") == 0)
+ strcmp(server, "de" QNICHOST_TAIL) == 0)
fmt = "-T dn,ace -C ISO-8859-1 %s\r\n";
+ else if (strcmp(server, "whois.dk-hostmaster.dk") == 0 ||
+ strcmp(server, "dk" QNICHOST_TAIL) == 0)
+ fmt = "--show-handles %s\r\n";
else
fmt = "%s\r\n";