io-developer / php-whois

PHP WHOIS provides parsed and raw whois lookup of domains and ASN routes. PHP 8.0 compatible (5.4+ old versions)
MIT License
437 stars 117 forks source link

IP-address lookup #176

Open joho1968 opened 2 years ago

joho1968 commented 2 years ago

Description
It'd be nice if the kit could support IP-address lookup, and I do realize this may open up another can of worms considering all the different "ripe" outputs.

bessone commented 2 years ago

Feel free to work on it and make a PR :wink:

joho1968 commented 2 years ago

Possibly a silly question: But would this not be a lot about checking if it's an IP address, and if so, allowing it to be looked up?

(instead of preventing the lookup)

The rest of the parser logic, etc would stay pretty much the same, no?

cmanley commented 7 months ago

I need to find out who an IP address belongs to but it does not have a host name. Regular whois says this belongs to Microsoft: 104.47.2.254 So how to I ask this package who it belongs to?