dns

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnpackDNSMsgPartially

func UnpackDNSMsgPartially(msg []byte, dns *godns.Msg) error

UnpackDNSMsgPartially is modified from https://github.com/miekg/dns/blob/6ad6301ae27dca6d7822baf1b05ff9c9e4ba56f4/msg.go#L883. It can unpack a DNS response with partial data only. More specifically, it unpacks the message header, the question section, and the answer section, while ignores the authority section and the additional section. It's used to get the question and answer sections when a DNS response is carried by a TCP packet but is fragmented.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL