mirror of
https://github.com/danog/dns.git
synced 2024-11-30 04:29:06 +01:00
17 lines
344 B
PHP
17 lines
344 B
PHP
<?php declare(strict_types = 1);
|
|
|
|
namespace Amp\Dns;
|
|
|
|
use Interop\Async\Promise;
|
|
|
|
interface Resolver {
|
|
/**
|
|
* @see \Amp\Dns\resolve
|
|
*/
|
|
public function resolve(string $name, array $options = []): Promise;
|
|
|
|
/**
|
|
* @see \Amp\Dns\query
|
|
*/
|
|
public function query(string $name, $type, array $options = []): Promise;
|
|
} |