Bug 243862

Summary: [patch] whois(1) does not recurse to servers that include a port number
Product: Base System Reporter: ben
Component: binAssignee: Mark Johnston <markj>
Status: Closed FIXED    
Severity: Affects Some People CC: emaste, linimon, markj
Priority: --- Keywords: patch
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
fix patch
none
better patch none

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 96.47.72.84
Comment 1 ben 2020-02-04 22:00:43 UTC
Created attachment 211359 [details]
better patch
Comment 2 Mark Johnston freebsd_committer freebsd_triage 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 freebsd_triage 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

Log:
  whois: Handle referrals to rwhois servers.

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

Changes:
  head/usr.bin/whois/whois.c
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2020-07-25 23:59:46 UTC
To committer: does this need an MFC?  Or can this PR just be closed instead.
Comment 5 commit-hook freebsd_committer freebsd_triage 2020-07-26 18:12:59 UTC
A commit references this bug:

Author: markj
Date: Sun Jul 26 18:12:54 UTC 2020
New revision: 363570
URL: https://svnweb.freebsd.org/changeset/base/363570

Log:
  MFC r363052:
  whois: Handle referrals to rwhois servers.

  PR:	243862

Changes:
_U  stable/12/
  stable/12/usr.bin/whois/whois.c
Comment 6 Mark Johnston freebsd_committer freebsd_triage 2020-07-26 18:13:17 UTC
(In reply to Mark Linimon from comment #4)
I just missed adding an MFC tag.  Thanks for the reminder.