From owner-freebsd-bugs Mon Jan 29 8:30:20 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 780A637B402 for <freebsd-bugs@hub.freebsd.org>; Mon, 29 Jan 2001 08:30:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0TGU3W86333; Mon, 29 Jan 2001 08:30:03 -0800 (PST) (envelope-from gnats) Date: Mon, 29 Jan 2001 08:30:03 -0800 (PST) Message-Id: <200101291630.f0TGU3W86333@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Mike Barcroft <mike@coffee.q9media.com> Subject: Re: bin/24707: [patch] Whois IP Address Handling Reply-To: Mike Barcroft <mike@coffee.q9media.com> Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/24707; it has been noted by GNATS. From: Mike Barcroft <mike@coffee.q9media.com> To: Peter Pentchev <roam@orbitel.bg> Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/24707: [patch] Whois IP Address Handling Date: Mon, 29 Jan 2001 11:31:26 -0500 (EST) > Just a little comment - I think in checking for dotted-quad IP addresses > you should be doing just that - check for dotted quads, not just check > for a starting digit. Yes, I know that the RFC's forbid - or at least > express a mild disagreement - with labels starting with a digit, but > in the real world, your patch would break e.g. 'whois 42.com' :( Not true. The patch checks the TLD, so 42.com works and 10.0.0.0 goes to ARIN. Since a TLD is never going to be a digit, it's safe to assume that it's an IP address. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message