Skip to content
This repository was archived by the owner on Aug 12, 2024. It is now read-only.
This repository was archived by the owner on Aug 12, 2024. It is now read-only.

Provide a way to turn off response caching #24

@ns476

Description

@ns476

First off, many thanks for this library - it's great, very easy to use!

It would be nice if there was a way to robustly turn off all response caching. DnsSrvResolverBuilder provides the cacheLookups option, but it looks like that only controls caching of Lookup instances - not caching of the actual responses, as dnsjava has a response cache shared between instances by default.

We were able to work around this by running:

    Lookup.getDefaultCache(DClass.IN).setMaxCache(0)
    Lookup.getDefaultCache(DClass.IN).setMaxNCache(0)

before performing any requests, but perhaps SimpleLookupFactory should set the cache on its Lookup instances to one which doesn't perform any caching?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions