NetworkCommons / sig0namectl

Open dynamic DNS name management with SIG(0) update delegation.
https://sig0namectl.networkcommons.org
GNU Affero General Public License v3.0
12 stars 3 forks source link

DNSSD Browser UI Service Type helper function: _gopher._tcp #53

Closed adam-burns closed 3 months ago

adam-burns commented 3 months ago

helper function for_gopher._tcp useful for browser UIs such as sd_inspector & map to resolve SD service type.

should map URL schema to gopher:// take host from SRV record take optional port (not needed for default port 70) from SRV record take path from TXT attribute "path" ie path=/0 (default is just "/") and map into format gopher://<:port>

this well known mapping will work for any browser on any platform that has a schema handler defined for gopher://

example: gopher://gopher.floodgap.com:70/

For any browsing domain that wishes to define one or more _gopher._tcp service type instances, a PTR record of (eg)

_services._dns-sd._udp.<browsing domain> PTR _gopher._tcp.<browsing domain>

must exist.

For any browsing domain that has has no _gopher._tcp service types existing or last remaining has been deleted, then PTR record of

_services._dns-sd._udp.<browsing domain> PTR _gopher._tcp.<browsing domain>

should be deleted.

adam-burns commented 3 months ago

implemented in https://github.com/NetworkCommons/sig0namectl/commit/4c90e995be498a1509311b7f9ff717d2dcea7a82