[openscreenprotocol] [mDNS] Minimum TXT record length limit

mfoltzgoogle has just created a new issue for https://github.com/webscreens/openscreenprotocol:

== [mDNS] Minimum TXT record length limit ==
The [DNS-SD spec](https://tools.ietf.org/html/rfc6763#section-6) discusses various length options for DNS-SD TXT records.  The current Open Screen [spec for mDNS discovery](mdns.sd) suggests the limit is 252 bytes. However, we may need more than that to advertise additional information like public key fingerprints; a SHA-256 fingerprint hex encodes to 64 bytes, or base64 encodes to 43 bytes.

On the implementation side, if we are only advertising these records on the LAN, the record size is limited by Ethernet and IP framing, which leads to the 1,300 byte maximum.  If we need to publish these records on the Internet, which might be useful for off-LAN discovery, that puts us at 400 bytes.

In the Open Screen Library, we've found that there's a 256 byte maximum implied by the open source mDNSResponder library, but that can be modified upward by patching the implementation.
 
To resolve this we will need to answer the following questions:
- What is all the information we need to advertise (including room for possible vendor extensions)?
- Do we require forward compatibility with public DNS in the future?




Please view or discuss this issue at https://github.com/webscreens/openscreenprotocol/issues/105 using your GitHub account

Received on Thursday, 6 September 2018 18:59:28 UTC