2016-12-30 04:16:14 +01:00
|
|
|
<?php
|
2016-03-19 22:23:55 +01:00
|
|
|
|
|
|
|
namespace Amp\Dns;
|
|
|
|
|
2017-01-11 06:49:38 +01:00
|
|
|
use AsyncInterop\Promise;
|
2016-11-15 17:42:15 +01:00
|
|
|
|
2016-03-19 22:23:55 +01:00
|
|
|
interface Resolver {
|
|
|
|
/**
|
2016-03-20 11:40:08 +01:00
|
|
|
* @see \Amp\Dns\resolve
|
2016-03-19 22:23:55 +01:00
|
|
|
*/
|
2016-11-15 17:42:15 +01:00
|
|
|
public function resolve(string $name, array $options = []): Promise;
|
2016-03-19 22:23:55 +01:00
|
|
|
|
|
|
|
/**
|
2016-03-20 11:40:08 +01:00
|
|
|
* @see \Amp\Dns\query
|
2016-03-19 22:23:55 +01:00
|
|
|
*/
|
2016-11-15 17:42:15 +01:00
|
|
|
public function query(string $name, $type, array $options = []): Promise;
|
2016-03-19 22:23:55 +01:00
|
|
|
}
|