mirror of
https://github.com/danog/dns.git
synced 2024-11-26 20:14:51 +01:00
18 lines
287 B
PHP
18 lines
287 B
PHP
<?php
|
|
|
|
namespace Amp\Dns;
|
|
|
|
use Amp\Promise;
|
|
|
|
interface Resolver {
|
|
/**
|
|
* @see \Amp\Dns\resolve
|
|
*/
|
|
public function resolve(string $name): Promise;
|
|
|
|
/**
|
|
* @see \Amp\Dns\query
|
|
*/
|
|
public function query(string $name, $type, array $options = []): Promise;
|
|
}
|