dns.message.decode_header

dns.message

decode_header(r) -> hdr, err

Decode the 12-byte DNS header from a reader