Query
in package
FinalYes
This class represents a single question in a query/response message
It uses a structure similar to \React\Dns\Message\Record
, but does not
contain fields for resulting TTL and resulting record data (IPs etc.).
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- describe() : string
- Describes the hostname and query type/class for this query
Properties
$class
public
int
$class
query class (aka QCLASS), see Message::CLASS_IN constant
$name
public
string
$name
query name, i.e. hostname to look up
$type
public
int
$type
query type (aka QTYPE), see Message::TYPE_* constants
Methods
__construct()
public
__construct(string $name, int $type, int $class) : mixed
Parameters
- $name : string
-
query name, i.e. hostname to look up
- $type : int
-
query type, see Message::TYPE_* constants
- $class : int
-
query class, see Message::CLASS_IN constant
describe()
Describes the hostname and query type/class for this query
public
describe() : string
The output format is supposed to be human readable and is subject to change. The format is inspired by RFC 3597 when handling unkown types/classes.
Tags
Return values
string —"example.com (A)" or "example.com (CLASS0 TYPE1234)"