问题原文
原帖链接 · Mike M · CC BY-SA 3.0
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?
已采纳解答
原帖链接 · Cosmic Ossifrage · CC BY-SA 3.0
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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
