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: _ssh._tcp #52

Closed adam-burns closed 2 months ago

adam-burns commented 3 months ago

helper function for_ssh._tcp useful for client UIs to resolve SD service types

should map URL schema to ssh:// take host from SRV record take optional port (not needed for default port 22) from SRV record take optional username from TXT attribute "user" ie user=vortex and map into format ssh://username@><host<:port>

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

example: ssh://vortex@zembla.zenr.io

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

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

must exist.

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

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

should be deleted.

adam-burns commented 2 months ago

implemented in 4c90e995be498a1509311b7f9ff717d2dcea7a82