Amp\Dns\query

functionquery(string$name,int|int[]$type,array$options =[]):Amp\Promise

Query specific DNS records.

Type Parameter Description Default Value
string $name Unlike resolve(), query() allows for requesting _any_ name (as DNS RFC allows for arbitrary strings) none
int|int[] $type Use constants of Amp\Dns\Record none
array $options @see resolve documentation []