In a linux shell you can try:

IPASERVER=$(python  << EOF
import dns.resolver
for rdata in dns.resolver.query('_ldap._tcp.your.ipa.domain', 'SRV'):
  print rdata.target
  break
EOF
)

You should obtain one of your ipa domain controller; not really round robin, but in a pseudo random fashion. Then use $IPASERVER as a parameter for curl.

HTH,
gc


On 30/06/2020 08:51, Daniel PC via FreeIPA-users wrote:
At this point what do you suggest i use? My options are over. curl does not 
implement SRV. DNS round-robin has problems. Are there any solutions left? You 
mentioned python. How could i use it?

thank you
_______________________________________________
FreeIPA-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/[email protected]

_______________________________________________
FreeIPA-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/[email protected]

Reply via email to