mafintosh / multicast-dns-service-types

Parse and stringify mdns service types
MIT License
15 stars 4 forks source link

Misleading name? #1

Open watson opened 8 years ago

watson commented 8 years ago

I think that a more appropriate name for this module would be something like "bonjour-service-name" as the whole Service Type thing is a Bonjour related topic - not related to Multicast DNS specifically (at least as far as I understand it).

Here is an excerpt from the relevant section from the Apple Bonjour Overview document (emphasis is mine):

Bonjour service names combine service types and transport protocols to form a registration type. The registration type is used to register a service and create DNS resource records for it. To distinguish registration types from domain names in DNS resource records, registration types use underscore prefixes to separate the components that make up a registration type. The format is

_ServiceType._TransportProtocolName.

I know it might not be desirable to rename the module at this point, so feel free to just close this issue. Just wanted to make a note of it :smiley:

watson commented 8 years ago

I just stumbled upon RFC 2782 which actually describes the _Service._Proto.Name format. So maybe it's not that directly tied to Bonjour as I originally thought