BrewBlox/particle-mdns

Duplication of host label in multiple locations

Opened this issue · 0 comments

We currently use a 24 byte serial number as hostname.
This ID is also used as service name, see screenshot from Wireshare below.

image

In the current implementation, each record can re-use another records label to prevent duplicated strings, but only if they have the same postfix.
This means that we will have to duplicate this ID and store it in multiple strings:

260020001951353530333932.local
260020001951353530333932._http._tcp.local
260020001951353530333932._brewblox._tcp.local

We could support using a prefix from another label, only the first label part, or with a count.