encode(
msg) ->raw_bytes
Encode a structured message table into raw DNS wire format
Encodes a complete DNS message from a structured table. Section counts
are computed from the array lengths. If msg.edns is set, an OPT
pseudo-record is appended to the additional section.