Cache-min-ttl

Hello,
I am confused about the option cache-min-ttl. u-control will not let
me set or get the option. I have a value set in my conf file and
u-checkconf does not print any errors regarding the option. However
u-checkconf will not print the value.

What follows is a transcript of my debugging attempts:

root@fw:~# service unbound restart
Restarting recursive DNS server: unbound.
root@fw:~# unbound-control -s 127.0.0.1 -c /etc/unbound/unbound.conf status
version: 1.4.20
verbosity: 1
threads: 2
modules: 2 [ validator iterator ]
uptime: 26 seconds
unbound (pid 6066) is running...
root@fw:~# unbound-control -s 127.0.0.1 -c /etc/unbound/unbound.conf
get_option verbosity
1
root@fw:~# unbound-control -s 127.0.0.1 -c /etc/unbound/unbound.conf
get_option cache-min-ttl
error unknown option
root@fw:~# unbound-checkconf
unbound-checkconf: no errors in /etc/unbound/unbound.conf
root@fw:~# unbound-checkconf -o cache-min-ttl
[1371088240] unbound-checkconf[7654:0] fatal error: cannot print
option 'cache-min-ttl'
root@fw:~# grep cache-min-ttl /etc/unbound/unbound.conf
        cache-min-ttl: 60
root@fw:~# unbound-control -s 127.0.0.1 -c /etc/unbound/unbound.conf
set_option cache-min-ttl: 60
error setting option

Hi Doug,

Hello, I am confused about the option cache-min-ttl. u-control will
not let me set or get the option. I have a value set in my conf
file and u-checkconf does not print any errors regarding the
option. However u-checkconf will not print the value.

That turns out to be an oversight in the code. I have remedied this
(in svn trunk for the next release). And I have also fixed so that
when you set min-ttl and max-ttl with unbound-control then it also
takes effect right away.

Best regards,
   Wouter

Thank you. Is it incorrect to assume that options changed by u-control
do not take effect right away?

I grabbed all the config options from unbound.conf.html and did a
u-control get_option to see if there were any other options that
behaved funny. Here are the options that produced errors:

cache-min-ttl.result error unknown option
forward-addr.result error unknown option
forward-first.result error unknown option
forward-host.result error unknown option
local-data-ptr.result error unknown option
local-data.result error unknown option
local-zone.result error unknown option
log-time-ascii.result error unknown option
name.result error unknown option
outgoing-port-avoid.result error unknown option
outgoing-port-permit.result error unknown option
python-script.result error unknown option
stub-addr.result error unknown option
stub-first.result error unknown option
stub-host.result error unknown option
stub-prime.result error unknown option
val-sig-skew-max.result error unknown option
val-sig-skew-min.result error unknown option

If that is useful information for you I am glad to provide it
otherwise ignore it. THe cache-min-ttl option was the only option i
was interested in. These are just provided in case it can help you
out.