From owner-svn-src-all@FreeBSD.ORG Thu May 14 10:30:38 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9C3D7D53; Thu, 14 May 2015 10:30:38 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8B4301EDD; Thu, 14 May 2015 10:30:38 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t4EAUcVY035077; Thu, 14 May 2015 10:30:38 GMT (envelope-from fanf@FreeBSD.org) Received: (from fanf@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t4EAUcFS035076; Thu, 14 May 2015 10:30:38 GMT (envelope-from fanf@FreeBSD.org) Message-Id: <201505141030.t4EAUcFS035076@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: fanf set sender to fanf@FreeBSD.org using -f From: Tony Finch Date: Thu, 14 May 2015 10:30:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r282883 - head/usr.bin/whois X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2015 10:30:38 -0000 Author: fanf Date: Thu May 14 10:30:37 2015 New Revision: 282883 URL: https://svnweb.freebsd.org/changeset/base/282883 Log: Clean up whois manual. Document the RA_SERVER environment variable. Remove the obsolete -R option, and discourage people from trying to use the Network Solutions server. Describe the default behaviour in the DESCRIPTION section, not buried in the options. Modified: head/usr.bin/whois/whois.1 Modified: head/usr.bin/whois/whois.1 ============================================================================== --- head/usr.bin/whois/whois.1 Thu May 14 10:23:57 2015 (r282882) +++ head/usr.bin/whois/whois.1 Thu May 14 10:30:37 2015 (r282883) @@ -47,6 +47,38 @@ utility looks up records in the database Network Information Centers .Pq Tn NICs . .Pp +By default +.Nm +constructs the name of a whois server to use from the top-level domain +.Pq Tn TLD +of the supplied (single) argument, and appending +.Qq Li .whois-servers.net . +This effectively allows a suitable whois server to be selected +automatically for a large number of +.Tn TLDs . +.Pp +In the event that an IP +address is specified, the whois server will default to the American +Registry for Internet Numbers +.Pq Tn ARIN . +If a query to +.Tn ARIN +references +.Tn APNIC , AfriNIC , LACNIC , +or +.Tn RIPE , +that server will be queried also, provided that the +.Fl Q +option is not specified. +.Pp +If the query is not a domain name or IP address, +.Nm +will fall back to +the host specified in the +.Ev RA_SERVER +environment variable, or if that is not set, it will use +.Pa whois.crsnic.net . +.Pp The options are as follows: .Bl -tag -width indent .It Fl a @@ -90,64 +122,10 @@ contact for subdomains of .It Fl h Ar host Use the specified host instead of the default variant. Either a host name or an IP address may be specified. -.Pp -By default -.Nm -constructs the name of a whois server to use from the top-level domain -.Pq Tn TLD -of the supplied (single) argument, and appending -.Qq Li .whois-servers.net . -This effectively allows a suitable whois server to be selected -automatically for a large number of -.Tn TLDs . -.Pp -In the event that an IP -address is specified, the whois server will default to the American -Registry for Internet Numbers -.Pq Tn ARIN . -If a query to -.Tn ARIN -references -.Tn APNIC , AfriNIC , LACNIC , -or -.Tn RIPE , -that server will be queried also, provided that the -.Fl Q -option is not specified. -.Pp -If the query is not a domain name or IP address, -.Nm -will fall back to -.Pa whois.crsnic.net . .It Fl i -Use the Network Solutions Registry for Internet Numbers +Use the obsolete Network Solutions Registry for Internet Numbers .Pq Pa whois.networksolutions.com database. -It contains network numbers and domain contact information for most of -.Pa .COM , .NET , .ORG -and -.Pa .EDU -domains. -.Pp -.Sy NOTE ! -The registration of these domains is now done by a number of -independent and competing registrars and this database holds no information -on the domains registered by organizations other than Network Solutions, Inc. -Also, note that the -.Tn InterNIC -database -.Pq Pa whois.internic.net -is no longer handled by Network Solutions, Inc. -For details, see -.Pa http://www.internic.net/ . -.Pp -(Hint: Contact information, identified by the term -.Em handle , -can be looked up by prefixing -.Qq Li "handle " -to the -.Tn NIC -handle in the query.) .It Fl I Use the Internet Assigned Numbers Authority .Pq Tn IANA @@ -190,24 +168,21 @@ Use the R\(aaeseaux IP Europ\(aaeens database. It contains network numbers and domain contact information for Europe. -.It Fl R -Use the Russia Network Information Center -.Pq Tn RIPN -database. -It contains network numbers and domain contact information -for subdomains of -.Pa .RU . -This option is deprecated; use the -.Fl c -option with an argument of -.Qq Li RU -instead. .El .Pp The operands specified to .Nm are treated independently and may be used as queries on different whois servers. +.Sh ENVIRONMENT +.Bl -tag +.It Ev RA_SERVER +The default whois server. +If this is unset, +.Nm +will use +.Pa whois.crsnic.net . +.El .Sh EXIT STATUS .Ex -std .Sh EXAMPLES