Documentation

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
link
https://tools.ietf.org/html/rfc1035#section-4.1.2
see
Record

Table of Contents

Properties

$class  : int
$name  : string
$type  : int

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
link
https://tools.ietf.org/html/rfc3597
Return values
string

"example.com (A)" or "example.com (CLASS0 TYPE1234)"


        
On this page

Search results