Skip to content

Improve WHOIS adapter handling of multiple results #179

@waab76

Description

@waab76

Currently, when ARIN has multiple results for an IP address, the WHOIS data adapter fails to return data. Sample IPs that demonstrate this include 24.255.164.88, 65.118.97.162, and 68.110.253.17

In each of these cases, ARIN has multiple records with different Network Type values. We want to update the WHOIS plugin to better handle these cases and return the data from the most specific record. The preference order for Network Types will be:

  1. Reassigned
  2. Direct Assignment
  3. Direct Allocation
  4. Reallocated

Input Criteria

  • WHOIS data adapter works

Output Criteria

  • When a single record is present, data adapter returns data for that record
  • When multiple records are present, data adapter returns data for the record with the most preferred Network Type
  • Fix backported to 4.0
  • Fix backported to 3.3

Tasks

  • Update ARIN parser to handle multiple records
  • Write JUnit tests for behavior
  • Backport to 4.0
  • Backport to 3.3

Metadata

Metadata

Assignees

Labels

#M> 1d <= 3dbug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions