dnsproxy icon indicating copy to clipboard operation
dnsproxy copied to clipboard

Unable to set cache min TTL via config file

Open jcoetzee opened this issue 1 year ago • 0 comments

I'm unsure of the syntax for specifying cache min TTL in the config file. The argument works when specified on the command line but when I try either cache_ttl_min or cache_min_ttl in the config file it has no effect. What is the correct syntax for this? Is there documentation on the syntax for the config file?

Example config file:

upstream:
  - quic://...
bootstrap:
  - "1.1.1.1:53"
cache: true
cache_ttl_min: 2700
cache_optimistic: true

As an aside, it would be helpful if the config parser warned when processing entries it doesn't know about. Additionally running in verbose mode should output all the configured config options so it's clear if an item has been configured as expected (i.e. how can I confirm that cache optimistic has been set correctly?)

jcoetzee avatar Aug 10 '22 18:08 jcoetzee