protected function getCache($type, $tag)
{
if (isset($this->dnsCache[md5($type . $tag)])) {
if (time() - $this->ttl < $this->dnsCache[md5($type . $tag)]['created']) {
return $this->dnsCache[md5($type . $tag)];
} else {
unset($this->dnsCache[md5($type . $tag)]);
return false;
}
} else {
return false;
}
}