doublez13 / pystub

DNS resolver with support for DNS over TLS and ad blocking
BSD 2-Clause "Simplified" License
6 stars 0 forks source link

Support for EDNS(0) #2

Open doublez13 opened 4 years ago

doublez13 commented 4 years ago

RFC 6891

doublez13 commented 4 years ago

The OPT RR MAY be placed anywhere within the additional data section.When an OPT RR is included within any DNS message, it MUST be the only OPT RR in that message. If a query message with more than one OPT RR is received, a FORMERR (RCODE=1) MUST be returned. The placement flexibility for the OPT RR does not override the need for the TSIG or SIG(0) RRs to be the last in the additional section whenever they are present