Project

General

Profile

Bug #1350

whois(1) should use correct whois server for lookups

Added by Albert Lee over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
cmd - userland programs
Start date:
2011-08-07
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

whois(1) has the InterNIC whois server (whois.internic.net) hardcoded, which only returns results for COM, NET and EDU domain names. It should be querying whois.iana.org for the TLD, and extract the "whois:" field to query the correct registry's WHOIS server.

The default behaviour should also be documented in the man page.

History

#1

Updated by Yuri Pankov over 8 years ago

May I suggest using FreeBSD's whois(1) having all requested features? I'll do the import if it's ok.

#2

Updated by Albert Lee over 8 years ago

Sure, it's a trivial program which nobody is sentimentally attached to.

#3

Updated by Yuri Pankov over 8 years ago

One more question though, should it still live in usr/src/cmd/cmd-inet/usr.bin or would making it usr/src/cmd/whois be more logical? I'm just not sure about cmd/cmd-inet/.... history...

#4

Updated by Albert Lee over 8 years ago

Yuri Pankov wrote:

One more question though, should it still live in usr/src/cmd/cmd-inet/usr.bin or would making it usr/src/cmd/whois be more logical? I'm just not sure about cmd/cmd-inet/.... history...

I assume, although I did not verify, that usr/src/cmd/cmd-inet was a wholesale import of the networking tools from BSD (the "Net" part of OS/Net).
It looks like recent IP-related programs (nwamd, ipadm) were still added there.

#5

Updated by Albert Lee over 8 years ago

  • Status changed from New to Resolved
  • Assignee set to Yuri Pankov
  • % Done changed from 0 to 100
  • Tags deleted (needs-triage)

Fixed in:
changeset: 13429:b2fbfacb9f9c
tag: tip
user: Yuri Pankov <>
date: Fri Aug 12 18:09:43 2011 -0400
files: usr/src/cmd/cmd-inet/usr.bin/Makefile usr/src/cmd/cmd-inet/usr.bin/THIRDPARTYLICENSE.whois usr/src/cmd/cmd-inet/usr.bin/THIRDPARTYLICENSE.whois.descrip usr/src/cmd/cmd-inet/usr.bin/whois.c usr/src/man/man1/whois.1 usr/src/pkg/manifests/service-network-network-clients.mf
description:
1350 whois(1) should use correct whois server for lookups
Reviewed by: Alexander Eremin <>
Reviewed by: Garrett D'Amore <>
Reviewed by: Dan McDonald <>
Reviewed by: Richard Lowe <>
Approved by: Albert Lee <>

Also available in: Atom PDF