New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for negative caching #55
Comments
MiniDNS should already cache negative responses. Or am I missing someting? The main discussion venue for MiniDNS is the #smack IRC channel at Freenode. |
In this case: val client = new DNSClient(new LRUCache(3));
val resolver = new ResolverApi(client)
//client.getCache.asInstanceOf[LRUCache].getMissCount
val result = resolver.resolve("www.asdasd.co.uk", classOf[A])
val result2 = resolver.resolve("www.asdasd.co.uk", classOf[A]) Shouldn't the second one have been cached as a negative entry? Same should happen for an IP that give NX_DOMAIN in every DNS server. Right? |
Sorry, I was wrong. MiniDNS does not yet cache negative results. |
@Flowdalic Is anyone working on this? If not, do you want me to do it? |
I'm not aware of anyone working on it. And I certainly will not you stop from doing so :) Is this regarding of GSOC or so? |
@Flowdalic Nope. We would like to use it for some project at CERN. I will try to do it then. Any special thing to have into account? |
When I worked on MiniDNS's cache I found that correctly caching DNS information is harder that I expected. It's not just as simple as a key/value key, although one may think so. It gets even more complicated if you want to use the information found in DNS replies to synthesize answers for other questions. I'm happy to support you whenever I can, but ideally not via this github issue. So feel encouraged to start an conversation with me in the Smack's IRC channel (#smack, freenode). |
From #85
|
Hello @Flowdalic , I do not longer work on the project that was using this library. I can try contact them. Nonetheless, from my side, if not needed for you, it can be closed. |
No need to close this issue until negative caching is implemented. |
Add support for negative caching. I offer myself to implement this feature, but I would like to have a chat in order to discuss possible implementations (Gitter?)
The text was updated successfully, but these errors were encountered: