GetMessageId() const
Returns the Message ID.
SetMessageId()
Sets the Message ID.
SetRandomMessageId()
Sets the Message ID to a crypto-secure randomly generated number.
GetType() const
Returns the type of the message.
SetType()
Sets the type of the message.
GetQueryType() const
Returns the type of the query.
SetQueryType()
Sets the type of the query.
IsAuthoritativeAnswerFlagSet() const
Specifies in response message if the responding name server is an authority for the domain name in question section.
ClearAuthoritativeAnswerFlag()
Clears the Authoritative Answer flag (AA) in the header.
SetAuthoritativeAnswerFlag()
Sets the Authoritative Answer flag (AA) in the header.
IsTruncationFlagSet() const
Specifies if message is truncated.
ClearTruncationFlag()
Clears the Truncation flag (TC) in the header.
SetTruncationFlag()
Sets the Truncation flag (TC) in the header.
IsRecursionDesiredFlagSet() const
Specifies if resolver wants to direct the name server to pursue the query recursively.
ClearRecursionDesiredFlag()
Clears the Recursion Desired flag (RD) in the header.
SetRecursionDesiredFlag()
Sets the Recursion Desired flag (RD) in the header.
IsRecursionAvailableFlagSet() const
Denotes whether recursive query support is available in the name server.
ClearRecursionAvailableFlag()
Clears the Recursion Available flag (RA) in the header.
SetRecursionAvailableFlag()
Sets the Recursion Available flag (RA) in the header.
GetResponseCode() const
Returns the response code.
SetResponseCode()
Sets the response code.
ResponseCodeToError()
Converts a Response Code into a related `Error`. - kResponseSuccess (0) : Success (no error condition) -> kErrorNone - kResponseFormatError (1) : Server unable to interpret due to format error -> kErrorParse - kResponseServerFailure (2) : Server encountered an internal failure -> kErrorFailed - kResponseNameError (3) : Name that ought to exist, does not exists -> kErrorNotFound - kResponseNotImplemented (4) : Server does not support the query type (OpCode) -> kErrorNotImplemented - kResponseRefused (5) : Server refused for policy/security reasons -> kErrorSecurity - kResponseNameExists (6) : Some name that ought not to exist, does exist -> kErrorDuplicated - kResponseRecordExists (7) : Some RRset that ought not to exist, does exist -> kErrorDuplicated - kResponseRecordNotExists (8) : Some RRset that ought to exist, does not exist -> kErrorNotFound - kResponseNotAuth (9) : Service is not authoritative for zone -> kErrorSecurity - kResponseNotZone (10) : A name is not in the zone -> kErrorParse - kDsoTypeNotImplemented (11) : DSO TLV Type is not implemented -> kErrorNotImplemented - kResponseBadName (20) : Bad name -> kErrorParse - kResponseBadAlg (21) : Bad algorithm -> kErrorSecurity - kResponseBadTruncation (22) : Bad truncation -> kErrorParse - Other error -> kErrorFailed.
GetQuestionCount() const
Returns the number of entries in question section.
SetQuestionCount()
Sets the number of entries in question section.
GetAnswerCount() const
Returns the number of entries in answer section.
SetAnswerCount()
Sets the number of entries in answer section.
GetAuthorityRecordCount() const
Returns the number of entries in authority records section.
SetAuthorityRecordCount()
Sets the number of entries in authority records section.
GetAdditionalRecordCount() const
Returns the number of entries in additional records section.
SetAdditionalRecordCount()
Sets the number of entries in additional records section.