[80411] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: watchdog of BIND server

daemon@ATHENA.MIT.EDU (Joe Abley)
Sat Apr 30 08:19:24 2005

In-Reply-To: <20050430084858.7870.qmail@web53607.mail.yahoo.com>
Cc: NANGO <nanog@merit.edu>
From: Joe Abley <jabley@isc.org>
Date: Sat, 30 Apr 2005 08:18:13 -0400
To: Joe Shen <joe_hznm@yahoo.com.sg>
Errors-To: owner-nanog@merit.edu



On 30 Apr 2005, at 04:48, Joe Shen wrote:

> Is there any configurable watchdog of BIND server
> deamon? E.g. once it found named is down, it will
> shutdown network interface to make the server out of
> anycast group.

BIND 9 is pretty good at watching itself; it's overwhelmingly likely to 
dump core with an assertion failure if it finds itself becoming unwell. 
Starting it with -f and wrapping that invocation with a pair of 
ifconfigs is what I suggested in the following document (which it 
sounds like may be what you are doing):

   http://www.isc.org/pubs/tn/isc-tn-2004-1.html#appx.WrapperScript

You could supplement that wrapper script with a script that runs out of 
cron that kills named if it doesn't respond properly to queries. If you 
do that, though, I would take care to make sure your criteria for 
deciding that the process is hung is conservative, lest you wind up 
with a named that gets killed before it can properly start.


Joe


home help back first fref pref prev next nref lref last post