Open
Description
Is your enhancement proposal related to a problem? Please describe.
Currently, dns-sd does not support
- domain enumeration (chapter 11)
- sub-types (chapter 7.2)
- service domains (chapter 7.2)
Items 2 and 3 deal with fully-qualified names (FQN's). Examples of FQN's that are unsupported are of the form:
<sub>._sub.<sn>._tcp.<servicedomain>.<parentdomain>.
or anything other than "local" for a <domain>
, where
<domain> := <servicedomain>.<parentdomain>.
The struct dns_sd_rec
actually has insufficient fields to represent all types of names.
Describe the solution you'd like
- 1 additional local "service domain", either configured from e.g. DHCP or via Kconfig
- remove the
proto
,service
, andinstance
fields ofstruct dns_sd_rec
- use only a
name
field andname_size
,domain
field anddomain_size
, andtext
andtext_size
- use accessor methods to extract the above values into callee-provided storage
- support domain enumeration via kconfig switch (ch 11)
- support all fully-qualified names described in ch 7.2
- an additional pass of helpful features from RFC 6763
Describe alternatives you've considered
Additional context
https://datatracker.ietf.org/doc/html/rfc6763