Add whois.iana.org to the whois(1) utility, under the -I option.
PR: bin/48914 Submitted by: James Raftery
This commit is contained in:
parent
c492956f6c
commit
7138e3fe15
@ -40,7 +40,7 @@
|
||||
.Nd "Internet domain name and network number directory service"
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl aAdgilmQrR6
|
||||
.Op Fl aAdgiIlmQrR6
|
||||
.Op Fl c Ar country-code | Fl h Ar host
|
||||
.Op Fl p Ar port
|
||||
.Ar name ...
|
||||
@ -148,6 +148,11 @@ can be looked up by prefixing
|
||||
to the
|
||||
.Tn NIC
|
||||
handle in the query.)
|
||||
.It Fl I
|
||||
Use the Internet Assigned Numbers Authority
|
||||
.Pq Tn IANA
|
||||
database.
|
||||
It contains network information for top-level domains.
|
||||
.It Fl l
|
||||
Use the Latin American and Caribbean IP address Regional Registry
|
||||
.Pq Tn LACNIC
|
||||
|
@ -73,6 +73,7 @@ __FBSDID("$FreeBSD$");
|
||||
#define SNICHOST "whois.6bone.net"
|
||||
#define BNICHOST "whois.registro.br"
|
||||
#define NORIDHOST "whois.norid.no"
|
||||
#define IANAHOST "whois.iana.org"
|
||||
#define DEFAULT_PORT "whois"
|
||||
#define WHOIS_SERVER_ID "Whois Server: "
|
||||
#define WHOIS_ORG_SERVER_ID "Registrant Street1:Whois Server:"
|
||||
@ -104,7 +105,7 @@ main(int argc, char *argv[])
|
||||
|
||||
country = host = qnichost = NULL;
|
||||
flags = use_qnichost = 0;
|
||||
while ((ch = getopt(argc, argv, "aAc:dgh:ilmp:QrR6")) != -1) {
|
||||
while ((ch = getopt(argc, argv, "aAc:dgh:iIlmp:QrR6")) != -1) {
|
||||
switch (ch) {
|
||||
case 'a':
|
||||
host = ANICHOST;
|
||||
@ -127,6 +128,9 @@ main(int argc, char *argv[])
|
||||
case 'i':
|
||||
host = INICHOST;
|
||||
break;
|
||||
case 'I':
|
||||
host = IANAHOST;
|
||||
break;
|
||||
case 'l':
|
||||
host = LNICHOST;
|
||||
break;
|
||||
@ -338,7 +342,7 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr,
|
||||
"usage: whois [-aAdgilmQrR6] [-c country-code | -h hostname] "
|
||||
"usage: whois [-aAdgiIlmQrR6] [-c country-code | -h hostname] "
|
||||
"[-p port] name ...\n");
|
||||
exit(EX_USAGE);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user