how to set lower TTL for redirect data? default ttl is 3600

pujo mulyono pudjo26 at
Mon Dec 7 16:41:26 UTC 2015

Hi Wouter,
thank you for the answer, but ...

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?

On 12/7/2015 3:20 PM, W.C.A. Wijngaards via Unbound-users wrote:
> Hash: SHA256
> Hi Pujo,
> On 06/12/15 04:35, pujo mulyono via Unbound-users wrote:
>> Hi,
>> 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
> 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).
> Best regards, Wouter
>> thank you
> Version: GnuPG v2
> ePdXt/X+Cixleh/TFlAoPvWY3n7KGseTjXVSOt2jwtpc8wbrQBqHuXpG8IsGHr7u
> xa+GTT19rndWs6qj+Qthh3lNqDFRJr3JXQXT3yZ5rAAh7nf+Z5cS60b8x/Vj6PE+
> vKL4FZo9U+9ppl+TL8QxRq7QT/pvbOHaEbDC+ZrMzPbmgzW2jA7Rew66RGlHYPZt
> 8ijsNprABAtHw/CYMXyDYYHAZISPuyofccPFIJqSqqstoqh2J2DiL+7EHNuM1pDy
> 65xFP77+T1YwhIf+vEFLb7UhZpBsgrS4qA2YwTzVCz50aalgm9ShfINwZCUUmWlu
> 4tqYzwdh/QRT40bBYw3wW8wJdesErbyc0GGBfoh81erd1YSMcCiUG5L8nmktHJ8O
> XcrIj2GVC/zEEOfPiuiQc2mSN5F0iz1nlEYpHw2FvAREmEnr7sg+N1WkmLq5WVRB
> gSB3Ra8OKNYhP0RZSL27jagw1dKiGXfrGjKzn3D+2Dx/oH05nKwh0dJGbV4REpc1
> 9mVTIWNscT6e8luDZo3M5+9MDgEhVaHlK/gC7CWHQfBIDACJck4pBn00Jg2PewXw
> pRm0fuleoRNElXnHqhRFdmwl+wpLP3j+AG//ApBdFjz+hpxu+hL2ydIpJfFeyrBN
> LW3ZRkpm5O7zs+TcNTjs
> =LCqL

Pujo Mulyono
HP. 087759741440 (XL)
HP. 085231814305 (Tsel)
HP. 085692238321 (Indosat)
HP. 08970405781 (Tri)
WA. 08970405781
YM. pudjo26
BBM. 79FF85E1
Website :
Website :

More information about the Unbound-users mailing list