string getHostForLookup(
string
$uri, string
$blacklist)
|
|
Get Hostname to ask for.
Performs the following steps:
(1) Extract the hostname from the given URI (2) Check if the "hostname" is an ip (3a) IS_IP Reverse the IP (1.2.3.4 -> 4.3.2.1) (3b) IS_FQDN Check if is in "CC-2-level-TLD" (3b1) IS_IN_2LEVEL: we want the last three names (3b2) IS_NOT_2LEVEL: we want the last two names (4) return the FQDN to query.
Overrides
Net_DNSBL::getHostForLookup() (Get host to lookup. Lookup a host if neccessary and get the complete FQDN to lookup.)
Parameters: