[thelist] Whois embedded in PHP 404 emailling alert
Edwin Martin
edwin at bitstorm.org
Tue Jan 13 09:31:21 CST 2004
John,
>QUESTION: Is it possible to add something to this script to do a WHOIS on
>the IP address logged and include the domain name in the email it sends?
PHP has a function to do that:
gethostbyaddr -- Get the Internet host name corresponding to a given IP
address.
string gethostbyaddr(string ip_address);
Returns the host name of the Internet host specified by ip_address. If an
error occurs, returns ip_address.
See also gethostbyname().
Bye,
Edwin Martin
More information about the thelist
mailing list