[bind-9.11.4] The cache time in dig became a large number when req domain in twice
Summary
The cache time in dig became a large number when req domain in twice
BIND version used
BIND 9.11.4
Steps to reproduce
first time the cache time is 30s:
>
dig @127.0.0.1 xxx.armdemo.com
;; AUTHORITY SECTION:
armdemo.com. 30 IN SOA ns.armdemo.com. admin.armdemo.com. 1505291735 10800 900 604800 86400
then, i try dig twice, the cache time became a large number:
>
dig @127.0.0.1 xxx.armdemo.com
;; AUTHORITY SECTION:
armdemo.com. 1603857299 IN SOA ns.armdemo.com. admin.armdemo.com. 1505291735 10800 900 604800 86400
What is the current bug behavior?
30 ---> 1603857299, almost 50years cache.
What is the expected correct behavior?
and this is my named config:
options {
max-ncache-ttl 30;
allow-query { any; };
allow-transfer { none; };
directory "/var/named";
recursion yes;
forward only;
forwarders { 3.36.6.102;3.36.6.103; };
allow-recursion { any; };
allow-query-cache { any; };
hostname "unknown";
listen-on port 53 { 3.36.6.109; 127.0.0.1; };
listen-on-v6 port 53 { };
minimal-responses yes;
notify no;
recursive-clients 10000;
tcp-clients 1000;
version "unknown";
};