Bug 243862 - [patch] whois(1) does not recurse to servers that include a port number
Summary: [patch] whois(1) does not recurse to servers that include a port number
Status: In Progress
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: Mark Johnston
Keywords: patch
Depends on:
Reported: 2020-02-04 07:15 UTC by ben
Modified: 2020-07-09 17:45 UTC (History)
2 users (show)

See Also:

fix patch (821 bytes, patch)
2020-02-04 07:15 UTC, ben
no flags Details | Diff
better patch (3.73 KB, patch)
2020-02-04 22:00 UTC, ben
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ben 2020-02-04 07:15:18 UTC
Created attachment 211337 [details]
fix patch

ARIN and possibly other whois servers sometimes append a port number to the hostname in a referral, which whois(1) does not recognize.

This can be seen with one of freebsd.org's addresses, which includes a referral to NYI's whois servers on an alternate port:

% whois
Comment 1 ben 2020-02-04 22:00:43 UTC
Created attachment 211359 [details]
better patch
Comment 2 Mark Johnston freebsd_committer 2020-06-05 20:19:32 UTC
I posted a lightly modified version of the patch for review here: https://reviews.freebsd.org/D25156
Comment 3 commit-hook freebsd_committer 2020-07-09 17:27:26 UTC
A commit references this bug:

Author: markj
Date: Thu Jul  9 17:27:14 UTC 2020
New revision: 363052
URL: https://svnweb.freebsd.org/changeset/base/363052

  whois: Handle referrals to rwhois servers.

  PR:		243862
  Submitted by:	ben@desync.com
  Differential Revision:	https://reviews.freebsd.org/D25156