Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.188.161.182
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp_probe /
vendor /
react /
dns /
src /
Query /
Delete
Unzip
Name
Size
Permission
Date
Action
CachingExecutor.php
2.67
KB
-rw-r--r--
2020-09-18 12:12
CancellationException.php
99
B
-rw-r--r--
2020-09-18 12:12
CoopExecutor.php
3.37
KB
-rw-r--r--
2020-09-18 12:12
ExecutorInterface.php
1.44
KB
-rw-r--r--
2020-09-18 12:12
HostsFileExecutor.php
2.98
KB
-rw-r--r--
2020-09-18 12:12
Query.php
1.04
KB
-rw-r--r--
2020-09-18 12:12
RetryExecutor.php
2.78
KB
-rw-r--r--
2020-09-18 12:12
SelectiveTransportExecutor.php
3.05
KB
-rw-r--r--
2020-09-18 12:12
TcpTransportExecutor.php
11.84
KB
-rw-r--r--
2020-09-18 12:12
TimeoutException.php
87
B
-rw-r--r--
2020-09-18 12:12
TimeoutExecutor.php
818
B
-rw-r--r--
2020-09-18 12:12
UdpTransportExecutor.php
6.79
KB
-rw-r--r--
2020-09-18 12:12
Save
Rename
<?php namespace React\Dns\Query; use React\Cache\CacheInterface; use React\Dns\Model\Message; use React\Promise\Promise; final class CachingExecutor implements ExecutorInterface { /** * Default TTL for negative responses (NXDOMAIN etc.). * * @internal */ const TTL = 60; private $executor; private $cache; public function __construct(ExecutorInterface $executor, CacheInterface $cache) { $this->executor = $executor; $this->cache = $cache; } public function query(Query $query) { $id = $query->name . ':' . $query->type . ':' . $query->class; $cache = $this->cache; $that = $this; $executor = $this->executor; $pending = $cache->get($id); return new Promise(function ($resolve, $reject) use ($query, $id, $cache, $executor, &$pending, $that) { $pending->then( function ($message) use ($query, $id, $cache, $executor, &$pending, $that) { // return cached response message on cache hit if ($message !== null) { return $message; } // perform DNS lookup if not already cached return $pending = $executor->query($query)->then( function (Message $message) use ($cache, $id, $that) { // DNS response message received => store in cache when not truncated and return if (!$message->tc) { $cache->set($id, $message, $that->ttl($message)); } return $message; } ); } )->then($resolve, function ($e) use ($reject, &$pending) { $reject($e); $pending = null; }); }, function ($_, $reject) use (&$pending, $query) { $reject(new \RuntimeException('DNS query for ' . $query->name . ' has been cancelled')); $pending->cancel(); $pending = null; }); } /** * @param Message $message * @return int * @internal */ public function ttl(Message $message) { // select TTL from answers (should all be the same), use smallest value if available // @link https://tools.ietf.org/html/rfc2181#section-5.2 $ttl = null; foreach ($message->answers as $answer) { if ($ttl === null || $answer->ttl < $ttl) { $ttl = $answer->ttl; } } if ($ttl === null) { $ttl = self::TTL; } return $ttl; } }