This is a starting point for Rust solutions to the "Build Your Own DNS server" Challenge.
In this challenge, you'll build a DNS server that's capable of parsing and creating DNS packets, responding to DNS queries, handling various record types and doing recursive resolve. Along the way we'll learn about the DNS protocol, DNS packet format, root servers, authoritative servers, forwarding servers, various record types (A, AAAA, CNAME, etc) and more.
-DNS uses a single format : a message
- a
messagehas multiple sections
- 12 bytes long
- Integers are encoded in big-endian format.