From dd8cd1535df9b1ba8d9e976ee920dd740f4e7895 Mon Sep 17 00:00:00 2001 From: millert Date: Tue, 5 Mar 2024 16:06:32 +0000 Subject: [PATCH] whois: use whois.internic.net for -i option Revert revision 1.22 which changed -i to use whois.networksolutions.com. Network Solutions no longer runs InterNic so we must use whois.internic.net for looking up nameserver or registrar records. OK deraadt@ --- usr.bin/whois/whois.1 | 45 ++++++++++++++++--------------------------- usr.bin/whois/whois.c | 4 ++-- 2 files changed, 19 insertions(+), 30 deletions(-) diff --git a/usr.bin/whois/whois.1 b/usr.bin/whois/whois.1 index 89898f5ca88..7477324bbcd 100644 --- a/usr.bin/whois/whois.1 +++ b/usr.bin/whois/whois.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: whois.1,v 1.38 2023/08/21 11:12:28 jsg Exp $ +.\" $OpenBSD: whois.1,v 1.39 2024/03/05 16:06:32 millert Exp $ .\" $NetBSD: whois.1,v 1.5 1995/08/31 21:51:32 jtc Exp $ .\" .\" Copyright (c) 1985, 1990, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)whois.1 8.2 (Berkeley) 6/20/94 .\" -.Dd $Mdocdate: August 21 2023 $ +.Dd $Mdocdate: March 5 2024 $ .Dt WHOIS 1 .Os .Sh NAME @@ -130,37 +130,26 @@ Use the Internet Assigned Numbers Authority root zone database. It contains information about top-level domains. .It Fl i -Use the Network Solutions Registry for Internet Numbers -.Pq Tn whois.networksolutions.com +Use the traditional Network Information Center (InterNIC) +.Pq Tn whois.internic.net database. -Historically, it contained network numbers and domain contact information -for most of +This now contains only registrations for domain names under .Tn \&.COM , .Tn \&.NET , .Tn \&.ORG and -.Tn \&.EDU -domains. -However, 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 -.Lk https://www.internic.net/ . -.Pp -(Hint: Contact information, identified by the term -.Em handle , -can be looked up by prefixing -.Qq Li \&! -or -.Qq Li handle\ \& -to the -.Tn NIC -handle in the query.) +.Tn \&.EDU . +You can optionally specify the type of object to search for: +.D1 Ic whois -i ' Ns Ar type Ar name Ns Ic ' +where +.Ar type +is one of +.Em domain , nameserver , registrar . +The +.Ar name +may also contain +.Li * +wildcards. .It Fl l Use the Latin American and Caribbean IP address Regional Registry .Pq Tn LACNIC diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index 13df7a7b9f1..7f922488cf3 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -1,4 +1,4 @@ -/* $OpenBSD: whois.c,v 1.58 2018/06/19 11:28:11 jca Exp $ */ +/* $OpenBSD: whois.c,v 1.59 2024/03/05 16:06:32 millert Exp $ */ /* * Copyright (c) 1980, 1993 @@ -45,7 +45,7 @@ #include #define NICHOST "whois.crsnic.net" -#define INICHOST "whois.networksolutions.com" +#define INICHOST "whois.internic.net" #define CNICHOST "whois.corenic.net" #define DNICHOST "whois.nic.mil" #define GNICHOST "whois.nic.gov" -- 2.20.1