1
0
mirror of https://github.com/danog/dns.git synced 2024-11-30 04:29:06 +01:00
dns/lib/Resolver.php

18 lines
299 B
PHP
Raw Normal View History

<?php
namespace Amp\Dns;
use Amp\Promise;
2016-11-15 17:42:15 +01:00
interface Resolver {
/**
* @see \Amp\Dns\resolve
*/
2017-06-23 13:14:51 +02:00
public function resolve(string $name, int $typeRestriction = null): Promise;
/**
* @see \Amp\Dns\query
*/
public function query(string $name, int $type): Promise;
2017-06-17 10:49:54 +02:00
}