Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMake API more open #111
Make API more open #111
Comments
I need to verify it there are no unintended side effects on certain methods, but yes, should be doable.
For consistency sake of matching get/set, yes. But would you mind to explain your use case? If you want to add a config provider don't you know which one you want to use and explicitly avoid probing the built-ins?
Yes.
Yes.
Not sure I don't understand this one, do you mean getters on the
I'm very hesitant about this as it would require making SimpleResolver immutable. Assuming you'd base equals on the used DNS server+port, isn't that something you could easily handle with a
|
|
@ibauersachs thanks for the swift response.
I basically want to add another resolver that takes custom DNS servers (Google DNS and Cloudflare in my scenario) that should act as the last ressort for out beloved Windows users without JNA. So I basically want add one more
Yes for the basic stuff.
I guess so - I was not sure myself if this is reasonable or not. But since Another possible extension would be to use SPI (https://docs.oracle.com/javase/tutorial/ext/basics/spi.html in case you don't know it) to allow for initial "one time startup configuration" where I could add my own "ResolverConfigProvider"? |
|
Small P.S.:
As |
When is that the case? dnsjava isn't an application, so if you (as a developer) use dnsjava, you can include JNA as a non-optional dependency. However, I like the idea of having the fallback resolver configurable instead of statically using
I considered using the SPI for the built-in providers, but it's not possible to get a (custom) sorted list from |
|
Basically I need a cross-plattform DNS client that speaks NAPTR so I don't have too many choices :-) Concerning the SPI suggestion, I see 2 reasonable solutions:
|
|
v3.2.0 is released |
|
Cool thanks - very helpful :) Keep up the good work |
Hi guys,
for the ease of use I stumbled upon a few things that would make my life easier:
BaseResolverConfigProviderpublicResolverConfig.configProviders(so that I can "add" one without needing to copy paste all of them)ExtendedResolver.DEFAULT_TIMEOUTpublic? It's immutable anywayExtendedResolverwith getters for the fields "loadBalance" and "retries"? Getters for theSimpleResolverfield may not be bad either.SimpleResolverwith equals/hashCode so that it can be easily used in a Set?Thanks.