Lines Matching refs:whois
1 /* $NetBSD: whois.c,v 1.38 2020/03/01 02:26:16 sevan Exp $ */
2 /* $OpenBSD: whois.c,v 1.58 2018/06/19 11:28:11 jca Exp $ */
42 static const char sccsid[] = "@(#)whois.c 8.1 (Berkeley) 6/6/93";
44 __RCSID("$NetBSD: whois.c,v 1.38 2020/03/01 02:26:16 sevan Exp $");
63 #define ANICHOST "whois.arin.net"
64 #define BNICHOST "whois.registro.br"
65 #define CNICHOST "whois.corenic.net"
66 #define DNICHOST "whois.nic.mil"
67 #define FNICHOST "whois.afrinic.net"
68 #define GNICHOST "whois.nic.gov"
69 #define IANAHOST "whois.iana.org"
70 #define INICHOST "whois.networksolutions.com"
71 #define LNICHOST "whois.lacnic.net"
72 #define MNICHOST "whois.ra.net"
73 #define NICHOST "whois.crsnic.net"
74 #define PDBHOST "whois.peeringdb.com"
75 #define PNICHOST "whois.apnic.net"
76 #define QNICHOST_TAIL ".whois-servers.net"
77 #define RNICHOST "whois.ripe.net"
78 #define RUNICHOST "whois.ripn.net"
80 #define WHOIS_PORT "whois"
81 #define WHOIS_SERVER_ID "Registrar WHOIS Server:"
91 static int whois(const char *, const char *, const char *, int);
170 rval += whois(name, server, port_whois, flags);
177 whois(const char *query, const char *server, const char *port, int flags)
225 if (strcmp(server, "whois.denic.de") == 0 ||
228 else if (strcmp(server, "whois.dk-hostmaster.dk") == 0 ||
285 error = whois(query, nhost, port, 0);
294 * If the TLD is a number, query ARIN, otherwise, use TLD.whois-server.net.
333 * Post-2003 ("new") gTLDs are all supposed to have "whois.nic.domain"
336 if (asprintf(&server, "whois.nic.%s", qhead) == -1)
339 /* most ccTLDs don't do this, but QNICHOST/whois-servers mostly works */
352 /* for others, if whois.nic.TLD doesn't exist, try whois-servers */