Skip to content

get-whois fails on valid IP address #117

Closed

Description

@DaveCurr

The octet verifiction checks to see if each one is >254, and fails if they are. 255 is valid as part of an IP address (even if used as the broadcast address). Suggest (for simplicity's sake) just changing the check to 255, rather than worry about CIDR subnetting..

Activity

  1. jdhitsolutions commented on Jan 9, 2022

    @jdhitsolutions
    Owner

    You must be referring to the parameter validation. Technically, I know an address can include 255. But are there really any registered addresses in the ARIN database that use 255?

  2. DaveCurr commented on Jan 9, 2022

    @DaveCurr
    Author

    This isn't the one that drew my attention today, but it will suffice:
    NetRange: 167.255.0.0 - 167.255.255.255
    CIDR: 167.255.0.0/16
    NetName: VIEWPORT
    NetHandle: NET-167-255-0-0-1
    Parent: NET167 (NET-167-0-0-0-0)
    NetType: Direct Allocation
    OriginAS:
    Organization: Vuteq Engineering Corporation (VEC-1)
    RegDate: 1993-11-30
    Updated: 2021-12-14
    Ref: https://rdap.arin.net/registry/ip/167.255.0.0

  3. jdhitsolutions commented on Jan 9, 2022

    @jdhitsolutions
    Owner

    Got it. This gives me something to test with. This is a simple enough fix to roll into the next release.

  4. jdhitsolutions commented on Jan 10, 2022

    @jdhitsolutions
    Owner

    I fixed this in v2.40.0 of the module if you want to update and verify.

    image

  5. DaveCurr commented on Jan 11, 2022

    @DaveCurr
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions