remctl icon indicating copy to clipboard operation
remctl copied to clipboard

SRV records for locating remctl services

Open jonrober opened this issue 10 years ago • 3 comments

Support a scheme for locating remctl services via SRV records. Rob Riepel proposes:

_ipm._remctl.Stanford.EDU. SRV 0 0 4373 yang.Stanford.EDU. _ipm._remctl.Stanford.EDU. SRV 5 0 4373 yin.Stanford.EDU.

plus a way to specify the sub-service for remctl's use.

We would want to add _tcp to those to follow the SRV record specification.

jonrober avatar Sep 22 '15 22:09 jonrober

Rob was confused. The scheme should be:

_remctl._tcp.ipm.stanford.edu. 1800 SRV 0 0 4373 yin.stanford.edu. _remctl._tcp.ipm.stanford.edu. 1800 SRV 5 0 4373 yang.stanford.edu.

riepel avatar Nov 12 '21 04:11 riepel

How would this work? Let's say two different departments have remctl services exposed to respond to "remctl myserver puppet oneshot", which department's server would the remctl client be directed to?

macrotex avatar Nov 14 '21 07:11 macrotex

How would this work? Let's say two different departments have remctl services exposed to respond to "remctl myserver puppet oneshot", which department's server would the remctl client be directed to?

Depends on the DNS setup. If there is a DNS SRV record _remctl._tcp.myserver.$domain, the connection would be made to the server chosen by the algorithm defined in the "Usage rules" section of RFC 2782; if not, the connection would be made to myserver.$domain (as defined in the same section).

riepel avatar Nov 16 '21 04:11 riepel