Ask, how to set TTL for redirect local-data lower than 3600 (default)?
i read the Documentation but i could not find it
if i want to set ttl = 900, something similar to
local-zone: "my.domain" redirect
local-data: "my.domain 900 A 127.0.0.1"
Ask, how to set TTL for redirect local-data lower than 3600
(default)? i read the Documentation but i could not find it if i
want to set ttl = 900, something similar to
local-zone: "my.domain" redirect local-data: "my.domain 900 A
127.0.0.1"
What you wrote works! You can put the TTL on local-data lines just
like you would in a zone file. Additionally, if you want to change
the TTL of nxdomain answers, add a local-data SOA record (at the top
of the zone).
since my list of blocked domain is hundred of thousands i need to change the "default TTL" lower than 3600 for all redirect data
the purpose is for efficiency, if inserting TTL on every single line local-data it will consumes huge RAM in the system.
somehow if there is a blocked domain and i remove the line from the list and then restart unbound, the domain still blocked for 1 hour
i need to modify the default TTL to ... let say 300 or 900 secods
should I edit the source code, where, which part?