DNS Round Robin

7 views
Skip to first unread message

David Ligr

unread,
Jul 20, 2020, 6:13:51 AM7/20/20
to ldaptive
Hi,

is there any config option specifying/other way how to specify which name resolver should be used? I need to use CachingNameResolver as  it does not return always the first address returned by InetAddress.getAllByName.

Thanks for reply.

David

dfisher

unread,
Jul 24, 2020, 11:10:55 PM7/24/20
to ldaptive
Yes, you can use the DnsResolverConnectionStrategy and set a custom resolver function.
See DnsResolverConnectionStrategy#setResolverFunction.

--Daniel Fisher
Reply all
Reply to author
Forward
0 new messages