Package nl.sidnlabs.dnslib.message
Class Message
java.lang.Object
nl.sidnlabs.dnslib.message.Message
-
Constructor Summary
ConstructorsConstructorDescriptionMessage()Message(NetworkData data) Message(NetworkData data, boolean partial, boolean allowFail) Decode network bytes into a DNS Message -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAdditional(RRset additional) voidaddAnswer(ResourceRecord answer) voidvoidaddAuthority(ResourceRecord authority) voidaddAuthority(RRset authority) addQuestion(Question question) voiddecode(NetworkData buffer) intjakarta.json.JsonObjecttoJson()toString()toZone()
-
Constructor Details
-
Message
public Message() -
Message
-
Message
Decode network bytes into a DNS Message- Parameters:
data- buffer with network datapartial- do not fully decode the message, only the header, questions and OPT record.allowFail- if true, do not throw an exception when decoding fails.
-
-
Method Details