mirror of
https://github.com/danog/dns.git
synced 2024-11-30 04:29:06 +01:00
18 lines
270 B
PHP
18 lines
270 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, int $type): Promise;
|
|
}
|