Open
Description
Eventually we're going to need a DNS client in the standard library. Although the networking piece(s) should wait for #1778, we can still write a DNS packet type now.
It should:
- Use a
packed struct
to represent a DNS packet header - Have non-extern enums for section/class/type
- Include definitions/parsers for various types
- Have constructors for common packet types
Consider cribbing from https://github.com/wahern/dns/blob/6cefd43f522f67680632309d4c221142c3798b71/src/dns.h#L354