Page MenuHomePhabricator

CheckUser WHOIS link broken
Closed, ResolvedPublic

Description

Author: leeharple

Description:
WHOIS link patch

On the CheckUser page there is a link to check WHOIS info, but the website's URL format changed.

Attached is a patch to fix the issue.


Version: unspecified
Severity: minor

Attached:

Details

Reference
bz31885

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:50 PM
bzimport added a project: CheckUser.
bzimport set Reference to bz31885.
bzimport added a subscriber: Unknown Object (MLST).

The old url seems to continue working.

If we changed it, maybe it should be to http://whois.arin.net/ui/arin.xsl?q=$1 (the search box on its top page)

john wrote:

Maybe we should use a WHOIS that supports RIRs other than itself. Right now I can get all the relavent information for an ARIN IP ( http://whois.arin.net/ui/arin.xsl?q=97.107.139.12 ), but anything from a different RIR is just a WHOIS for that /8 ( http://whois.arin.net/ui/arin.xsl?q=46.105.138.12 ). Not very helpful.

john wrote:

Although I love domain tools I would prefer something that's, uh, not meant to be profited from. Like the WHOIS tool on the toolserver.

or a PHP implementation of WHOIS? http://pear.php.net/package/Net_Whois for example:

$ pear install Net_Whois
$ php -r 'require ("Net/Whois.php");$w = new Net_Whois();echo $w->query("n 46.105.138.12");'
results in:

  1. The following results may also be obtained via:
  2. http://whois.arin.net/rest/nets;q=46.105.138.12?showDetails=true&showARIN=false&ext=netref2 #

NetRange: 46.0.0.0 - 46.255.255.255
CIDR: 46.0.0.0/8
OriginAS:
NetName: 46-RIPE
NetHandle: NET-46-0-0-0-0
Parent:
NetType: Allocated to RIPE NCC
Comment: These addresses have been further assigned to users in
Comment: the RIPE NCC region. Contact information can be found in
Comment: the RIPE database at http://www.ripe.net/whois
RegDate: 2009-09-29
Updated: 2009-09-30
Ref: http://whois.arin.net/rest/net/NET-46-0-0-0-0

OrgName: RIPE Network Coordination Centre
OrgId: RIPE
Address: P.O. Box 10096
City: Amsterdam
StateProv:
PostalCode: 1001EB
Country: NL
RegDate:
Updated: 2011-09-24
Ref: http://whois.arin.net/rest/org/RIPE

ReferralServer: whois://whois.ripe.net:43

OrgAbuseHandle: RNO29-ARIN
OrgAbuseName: RIPE NCC Operations
OrgAbusePhone: +31 20 535 4444
OrgAbuseEmail: hostmaster@ripe.net
OrgAbuseRef: http://whois.arin.net/rest/poc/RNO29-ARIN

OrgTechHandle: RNO29-ARIN
OrgTechName: RIPE NCC Operations
OrgTechPhone: +31 20 535 4444
OrgTechEmail: hostmaster@ripe.net
OrgTechRef: http://whois.arin.net/rest/poc/RNO29-ARIN

  1. ARIN WHOIS data and services are subject to the Terms of Use
  2. available at: https://www.arin.net/whois_tou.html #

% This is the RIPE Database query service.
% The objects are in RPSL format.
%
% The RIPE Database is subject to Terms and Conditions.
% See http://www.ripe.net/db/support/db-terms-conditions.pdf

%ERROR:101: no entries found
%
% No entries found in the selected source(s).

Avoiding "n " before the IP is better since $w->query("46.105.138.12"):

  1. Query terms are ambiguous. The query is assumed to be:
  2. "n 46.105.138.12" #
  3. Use "?" to get help. #
  1. The following results may also be obtained via:
  2. http://whois.arin.net/rest/nets;q=46.105.138.12?showDetails=true&showARIN=false&ext=netref2 #

NetRange: 46.0.0.0 - 46.255.255.255
CIDR: 46.0.0.0/8
OriginAS:
NetName: 46-RIPE
NetHandle: NET-46-0-0-0-0
Parent:
NetType: Allocated to RIPE NCC
Comment: These addresses have been further assigned to users in
Comment: the RIPE NCC region. Contact information can be found in
Comment: the RIPE database at http://www.ripe.net/whois
RegDate: 2009-09-29
Updated: 2009-09-30
Ref: http://whois.arin.net/rest/net/NET-46-0-0-0-0

OrgName: RIPE Network Coordination Centre
OrgId: RIPE
Address: P.O. Box 10096
City: Amsterdam
StateProv:
PostalCode: 1001EB
Country: NL
RegDate:
Updated: 2011-09-24
Ref: http://whois.arin.net/rest/org/RIPE

ReferralServer: whois://whois.ripe.net:43

OrgAbuseHandle: RNO29-ARIN
OrgAbuseName: RIPE NCC Operations
OrgAbusePhone: +31 20 535 4444
OrgAbuseEmail: hostmaster@ripe.net
OrgAbuseRef: http://whois.arin.net/rest/poc/RNO29-ARIN

OrgTechHandle: RNO29-ARIN
OrgTechName: RIPE NCC Operations
OrgTechPhone: +31 20 535 4444
OrgTechEmail: hostmaster@ripe.net
OrgTechRef: http://whois.arin.net/rest/poc/RNO29-ARIN

  1. ARIN WHOIS data and services are subject to the Terms of Use
  2. available at: https://www.arin.net/whois_tou.html #

% This is the RIPE Database query service.
% The objects are in RPSL format.
%
% The RIPE Database is subject to Terms and Conditions.
% See http://www.ripe.net/db/support/db-terms-conditions.pdf

% Note: this output has been filtered.
% To receive output for a database update, use the "-B" flag.

% Information related to '46.105.138.0 - 46.105.138.15'

inetnum: 46.105.138.0 - 46.105.138.15
netname: HexxehNET
descr: Hexxeh.net
country: GB
org: ORG-OL17-RIPE
admin-c: OTC14-RIPE
tech-c: OTC14-RIPE
status: ASSIGNED PA
mnt-by: OVH-MNT
source: RIPE # Filtered

organisation: ORG-OL17-RIPE
org-name: OVH Ltd
org-type: OTHER
address: 3 Southwark street
address: LONDON SE1 1RQ
address: UK
abuse-mailbox: abuse@ovh.net
admin-c: OTC2-RIPE
mnt-ref: OVH-MNT
mnt-by: OVH-MNT
source: RIPE # Filtered

role: OVH UK Technical Contact
address: OVH Ltd
address: 3 Southwark street
address: LONDON SE1 1RQ
address: UK
admin-c: OK217-RIPE
tech-c: GM84-RIPE
nic-hdl: OTC14-RIPE
abuse-mailbox: abuse@ovh.net
mnt-by: OVH-MNT
source: RIPE # Filtered

% Information related to '46.105.0.0/16AS16276'

route: 46.105.0.0/16
descr: OVH ISP
descr: Paris, France
origin: AS16276
mnt-by: OVH-MNT
source: RIPE # Filtered

(In reply to comment #5)

or a PHP implementation of WHOIS? http://pear.php.net/package/Net_Whois for
example:

$ pear install Net_Whois
$ php -r 'require ("Net/Whois.php");$w = new Net_Whois();echo $w->query("n
46.105.138.12");'
results in:

That would require the pear package of NetWhois installed wouldn't, Which is something we don't really want (more "third party" dependices)

Thehelpfulonewiki wrote:

I can see this has been marked as patch reviewed - has this been implemented yet?

nope, filed as gerrit change 12357

The change has been merged into the git repository. Hope to see it live soon. Thank you!