Running whois 74.93.16.177
on my laptop gives me information back and tells me the IP belongs to Comcast.
However calling the Whois REST API tells me that the IP is not managed by RIPE. I'm also able to get the same results as my local whois query by searching on online public RIPE mirrors.
See: https://rest.db.ripe.net/search.json?query-string=74.93.16.177
Which gives
"attribute" : [ {"name" : "inetnum","value" : "74.0.0.0 - 74.255.255.255" }, {"name" : "netname","value" : "NON-RIPE-NCC-MANAGED-ADDRESS-BLOCK" }, {"name" : "descr","value" : "IPv4 address block not managed by the RIPE NCC" }, {"name" : "remarks","value" : "------------------------------------------------------" }, {
Whereas on the command line, whois 74.93.16.177
gives
NetRange: 74.93.16.0 - 74.93.19.255CIDR: 74.93.16.0/22NetName: CBC-CONNECTICUT-7NetHandle: NET-74-93-16-0-1Parent: CBC-CM-4 (NET-74-92-0-0-1)NetType: ReallocatedOriginAS: Organization: Comcast Cable Communications, LLC (CCCS)RegDate: 2007-11-13Updated: 2017-11-01Ref: https://whois.arin.net/rest/net/NET-74-93-16-0-1OrgName: Comcast Cable Communications, LLCOrgId: CCCSAddress: 1800 Bishops Gate BlvdCity: Mt LaurelStateProv: NJPostalCode: 08054Country: USRegDate: 2001-09-17Updated: 2017-01-28Ref: https://whois.arin.net/rest/org/CCCS
How do I make the correct call to the REST API to get the same response as I would on the command line except in JSON?