Documentation ¶
Index ¶
Constants ¶
View Source
const ( A Type = 1 AAAA Type = 28 IN Class = 1 STANDARD_QUERY uint16 = 0x0100 STANDARD_RESPONSE uint16 = 0x8180 )
View Source
const (
BufferMaxLength = 255
)
Variables ¶
This section is empty.
Functions ¶
func SerializeMessage ¶
SerializeMessage serialize a DNS message into a binary representation
Types ¶
type BufferTooLongException ¶
type BufferTooLongException struct {
// contains filtered or unexported fields
}
BufferTooLongException error returned when the buffer is too long
func (*BufferTooLongException) Error ¶
func (b *BufferTooLongException) Error() string
Error returns the string of the current error
type Message ¶
type Message struct { ID uint16 Header uint16 QuestionCount uint16 ResponseCount uint16 Question []Question Response []Record }
Message represent a simplify dns message
func ParseMessage ¶
ParseMessage parse a message from a binary representation
Click to show internal directories.
Click to hide internal directories.