mafintosh / dns-packet

An abstract-encoding compliant module for encoding / decoding DNS packets
MIT License
207 stars 71 forks source link

Support unicast-response bit #21

Open silverwind opened 6 years ago

silverwind commented 6 years ago

The lack of it was noticed in https://github.com/mafintosh/dns-packet/pull/4. From https://tools.ietf.org/html/rfc6762:

Multicast DNS defines the top bit in the class field of a DNS question as the unicast-response bit.

Suggestion was to add a boolean property on questions that maps to the top bit in the class bits.