OK?
Index: whois.1 =================================================================== RCS file: /cvs/src/usr.bin/whois/whois.1,v retrieving revision 1.31 diff -u -p -r1.31 whois.1 --- whois.1 26 Sep 2012 16:12:14 -0000 1.31 +++ whois.1 5 Mar 2013 13:56:54 -0000 @@ -175,6 +175,10 @@ defaults to the port listed in .Pa /etc/services (port 43). +.It Fl P +Use the PeeringDB database. +It contains details about presence at internet peering points +for many network operators. .It Fl Q Do a quick lookup. This means that Index: whois.c =================================================================== RCS file: /cvs/src/usr.bin/whois/whois.c,v retrieving revision 1.43 diff -u -p -r1.43 whois.c --- whois.c 4 Mar 2010 21:37:56 -0000 1.43 +++ whois.c 5 Mar 2013 13:56:54 -0000 @@ -57,6 +57,7 @@ #define LNICHOST "whois.lacnic.net" #define AFNICHOST "whois.afrinic.net" #define BNICHOST "whois.registro.br" +#define PDBHOST "whois.peeringdb.com" #define QNICHOST_TAIL ".whois-servers.net" #define WHOIS_PORT "whois" @@ -81,7 +82,7 @@ main(int argc, char *argv[]) country = host = NULL; flags = rval = 0; - while ((ch = getopt(argc, argv, "aAc:dgh:ilmp:qQrR")) != -1) + while ((ch = getopt(argc, argv, "aAc:dgh:ilmp:PqQrR")) != -1) switch (ch) { case 'a': host = ANICHOST; @@ -112,6 +113,9 @@ main(int argc, char *argv[]) break; case 'p': port_whois = optarg; + break; + case 'P': + host = PDBHOST; break; case 'q': /* deprecated, now the default */