Is there a way to specify 2 SRV records for the same service, one implementing security and one not? Is there enough information on the specification to indicate such a thing?
1 Answer
You can use a standard SRV
record to point to different port numbers for a service, perhaps one for a secure and another for an insecure port.
The DNS doesn't understand the distinction nor does it understand that it might receive a different level of service if using one versus the other. The onus will be on your application to encode the semantics of the secure and insecure records, and ensure it looks up the appropriate record on each occasion for the desired connection security level.
See HBruijn's comment for a good example using LDAP
and LDAPS
records.
_ldaps._tcp.example.com
to differentiate from_ldap._tcp.example.com