arineng / nicinfo

NicInfo is a smart, command-line RDAP client
ISC License
160 stars 28 forks source link

Calculate CIDR block #14

Closed agallo closed 7 years ago

agallo commented 8 years ago

Providing CIDR notation for the queried prefix would be helpful. If I query for a host address, nicinfo will display the start and end address, but not the CIDR block that contains the info. whois provides this info. For example:

whois 2620:0:861:ed1a::1
<output truncated>
NetRange:       2620:0:860:: - 2620:0:863:FFFF:FFFF:FFFF:FFFF:FFFF
CIDR:           2620:0:860::/46

Having the CIDR block calculated would be helpful.

Thank you

anewton1998 commented 8 years ago

Good suggestion. I'll look to incorporate this.

anewton1998 commented 7 years ago

This now in 1.2 release