Open tgross opened 2 years ago
I got it! From RFC 2782:
The format of the SRV RR
Here is the format of the SRV RR, whose DNS type code is 33: _Service._Proto.Name TTL Class SRV Priority Weight Port Target
I can simply call my service ldap
, call the tag tcp
, and I'm gonna get: _ldap._tcp.domain.org
I think you can close this one.
In https://github.com/hashicorp/nomad/issues/13604, @maxadamo wrote the following proposal, but I wasn't able to transfer the issue over here for some reason 😊
Proposal
According to the following links: https://docs.ldap.com/ldap-sdk/docs/javadoc/index.html?com/unboundid/ldap/sdk/DNSSRVRecordServerSet.html https://ldap.com/dns-srv-records-for-ldap/
a DNS SRV record for LDAP should contain 2 tags at the same time
_ldap._tcp
(or_ldaps._tcp
)service tag in Nomad is a list and it tried to define:
["ldap", "tcp"]
but I get an unexpected result. The name can be resolved either as:
but it cannot be resolved as:
Furthermore, the above documentation says that in order to get a list of DNS records for a domain, the tag should be prepended. For instance:
Use-cases
use proper LDAP SRV record (with escapes as follows):
Attempted Solutions
could you make the multiple tags work together, and maybe even one at once? For instance, we can resolve these all:
p.s.: maybe the prepending "_" is enough and we don't need to prepend the tags. I don't have it clear yet.