spotify / dns-java

DNS wrapper library that provides SRV lookup functionality
Apache License 2.0
206 stars 47 forks source link

Remove cachingLookups while initialising DnsSrvResolvers in BasicUsage class #65

Open UdayHE opened 1 year ago

UdayHE commented 1 year ago

When I tried to run BasicUsage class, it is throwing the exception"Session not supported with caching lookup" as expected. So if we don't call the deprecated method cachingLookups in BasicUsage class while initialising DnsSrvResolvers, will solve this problem and helps to understand and debug the BasicUsage class. It helps who-ever cloning this repository and try to understand how this library works.

Example:

image