|All requests||>||What is the best PHP IP information c...||>||Request new recommendation||>||Featured requests||>||No recommendations|
by Stefaan Lesage - 2 months ago (2022-09-05)
I already know the gethostbyaddr function.
Is there a class to get the company name with the IP address as in the API of this website?
https : // ipinfo.io / products / ip-company-api
That information is taken from the response to the whois server for the specific IP address.
This class provides a function named whois to return the response from the whois server when you query using an IP address.
Then you need to extract the relevant lines of the response that pull the hosting company name, which is the last OrgName.
Can you reply here to let us know if this solves your problem?