Google Cloud Chronicle Client - Class Dns (0.9.0)

Reference documentation and code samples for the Google Cloud Chronicle Client class Dns.

DNS information.

Generated from protobuf message google.backstory.Dns

Namespace

Google \ Backstory

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ id int

DNS query id.

↳ response bool

Set to true if the event is a DNS response. See QR field from RFC1035.

↳ opcode int

The DNS OpCode used to specify the type of DNS query (for example, QUERY, IQUERY, or STATUS).

↳ authoritative bool

Other DNS header flags. See RFC1035, section 4.1.1.

↳ truncated bool

Whether the DNS response was truncated.

↳ recursion_desired bool

Whether a recursive DNS lookup is desired.

↳ recursion_available bool

Whether a recursive DNS lookup is available.

↳ response_code int

Response code. See RCODE from RFC1035.

↳ questions array<Dns\Question>

A list of domain protocol message questions.

↳ answers array<Dns\ResourceRecord>

A list of answers to the domain name query.

↳ authority array<Dns\ResourceRecord>

A list of domain name servers which verified the answers to the domain name queries.

↳ additional array<Dns\ResourceRecord>

A list of additional domain name servers that can be used to verify the answer to the domain.

getId

DNS query id.

Returns
Type Description
int

setId

DNS query id.

Parameter
Name Description
var int
Returns
Type Description
$this

getResponse

Set to true if the event is a DNS response. See QR field from RFC1035.

Returns
Type Description
bool

setResponse

Set to true if the event is a DNS response. See QR field from RFC1035.

Parameter
Name Description
var bool
Returns
Type Description
$this

getOpcode

The DNS OpCode used to specify the type of DNS query (for example, QUERY, IQUERY, or STATUS).

Returns
Type Description
int

setOpcode

The DNS OpCode used to specify the type of DNS query (for example, QUERY, IQUERY, or STATUS).

Parameter
Name Description
var int
Returns
Type Description
$this

getAuthoritative

Other DNS header flags. See RFC1035, section 4.1.1.

Returns
Type Description
bool

setAuthoritative

Other DNS header flags. See RFC1035, section 4.1.1.

Parameter
Name Description
var bool
Returns
Type Description
$this

getTruncated

Whether the DNS response was truncated.

Returns
Type Description
bool

setTruncated

Whether the DNS response was truncated.

Parameter
Name Description
var bool
Returns
Type Description
$this

getRecursionDesired

Whether a recursive DNS lookup is desired.

Returns
Type Description
bool

setRecursionDesired

Whether a recursive DNS lookup is desired.

Parameter
Name Description
var bool
Returns
Type Description
$this

getRecursionAvailable

Whether a recursive DNS lookup is available.

Returns
Type Description
bool

setRecursionAvailable

Whether a recursive DNS lookup is available.

Parameter
Name Description
var bool
Returns
Type Description
$this

getResponseCode

Response code. See RCODE from RFC1035.

Returns
Type Description
int

setResponseCode

Response code. See RCODE from RFC1035.

Parameter
Name Description
var int
Returns
Type Description
$this

getQuestions

A list of domain protocol message questions.

Returns
Type Description
Google\Protobuf\RepeatedField<Dns\Question>

setQuestions

A list of domain protocol message questions.

Parameter
Name Description
var array<Dns\Question>
Returns
Type Description
$this

getAnswers

A list of answers to the domain name query.

Returns
Type Description
Google\Protobuf\RepeatedField<Dns\ResourceRecord>

setAnswers

A list of answers to the domain name query.

Parameter
Name Description
var array<Dns\ResourceRecord>
Returns
Type Description
$this

getAuthority

A list of domain name servers which verified the answers to the domain name queries.

Returns
Type Description
Google\Protobuf\RepeatedField<Dns\ResourceRecord>

setAuthority

A list of domain name servers which verified the answers to the domain name queries.

Parameter
Name Description
var array<Dns\ResourceRecord>
Returns
Type Description
$this

getAdditional

A list of additional domain name servers that can be used to verify the answer to the domain.

Returns
Type Description
Google\Protobuf\RepeatedField<Dns\ResourceRecord>

setAdditional

A list of additional domain name servers that can be used to verify the answer to the domain.

Parameter
Name Description
var array<Dns\ResourceRecord>
Returns
Type Description
$this