View definition

(*Conn).ReadMsgHeader

Defined in github.com/miekg/dns/client.go

Description

ReadMsgHeader reads a DNS message, parses and populates hdr (when hdr is not nil). Returns message as a byte slice to be parsed with Msg.Unpack later on. Note that error handling on the message body is not possible as only the header is parsed.

ReadMsgHeader is referenced in 1 repository

github.com/miekg/dns