cache flush

Antonio Anselmi a.anselmi at oltrelinux.com
Tue Mar 10 14:31:48 EDT 2009


so your mara start/stop script does remove/touch /999-dns-down
it seems a good trick!

Antonio

On Tue, March 10, 2009 19:49, Ken Lyons - Graphix Wizard/Data-Forms said:
>
> Antonio Anselmi wrote:
>> thanks for the hints
>>
>> I tink to use cron in order to stop&start mara 'cos in some
>> circumstances I need to stop all running daemons.
>>
>> is 15 mins timer a reasonable value in your real-life experiences?
>>
> I use  two DNS servers both multi homed (per RFC). Haven't had any
> issues. I set my default TTL's for about 1 hour,
> (10min for dynadns hosts).   And since both servers don't  recycle in
> the same minute..one of them will take
> all the incoming requests while the other  restarts. -- all of 10
> seconds.
>
> I use a shell script wrapper (trigged from  inittab ) on mara,  with a
> -e flag.
> If a certain file   /999-dns-down   exists, it just sleeps for 60
> seconds and exits instead of running mara.
> That way I can still shutdown DNS without it respawning or racing.
>
> If there are many requests for a dns update in the webadmin (over 30
> updates),
> it can trigger a restart instead of waiting up to 14 minutes for the
> next batch.
>
>
> Ken
>
>> Antono
>>
>> On Tue, March 10, 2009 17:23, Ken Lyons - Graphix Wizard/Data-Forms
>> said:
>>
>>> Don't know if this helps or not..but I have mine restart every 15
>>> minutes...
>>> (inittab runs respawn mara... cron kills it's pid)
>>> that way any updates to the include files get updated, plus clear
>>> the
>>> cache.
>>> --I use automated script to add/edit  dns entries
>>>
>>> Ken
>>>
>>>
>>> Sam Trenholme wrote:
>>>
>>>>> How can I periodically flush the cache?
>>>>>
>>>>>
>>>> You can periodically flush the cache by restarting MaraDNS.
>>>>
>>>> - Sam
>>>>
>>>> Note: I do not answer support requests sent by private email
>>>> without
>>>> being compensated for my time.  I will discuss rates if you want
>>>> this
>>>> kind of support.  Thank you for your understanding.
>>>>
>>>>
>>>>
>>>>
>>>>
>>
>>
>>
>>
>




More information about the list mailing list