Re: Script to stop and start named
From: Michael C. (mcsuper5_at_usol.com)
Date: 01/28/04
- Next message: Borut: "dial-in server problem"
- Previous message: Andy Fraser: "Re: Redhat INstallation - Newbie"
- In reply to: Jibba Jabba: "Script to stop and start named"
- Next in thread: pbs: "Re: Script to stop and start named"
- Reply: pbs: "Re: Script to stop and start named"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Jan 2004 07:56:49 GMT
On Wed, 28 Jan 2004 03:15:14 GMT,
Jibba Jabba <trutran@mailexcite.com> wrote:
> Is there a script out there that can monitor my dns server (bind) and
> restart it if it's not running? I'd like to put it in a cron job so
> that if it ever goes down a restart will be attempted.
I don't run a nameserver, so forgive any obvious mistakes, but
adding something similar to a cron job might work:
# The following two lines should be on one line
*/10 * * * * host myhost.mydomain mydns.mydomain ||
/etc/init.d/named restart
I don't know if you are supposed to be able to count on host to return
non zero if the lookup fails. On my debian box host acts that way, on
my Redhat box host appears to return zero whether it is found or not.
Redhat's man page (RH 7.2) doesn't specify behavior, Debian's does.
HTH,
Michael C.
-- mcsuper5@usol.com http://mcsuper5.freeshell.org/ Registered Linux User #303915 http://counter.li.org/
- Next message: Borut: "dial-in server problem"
- Previous message: Andy Fraser: "Re: Redhat INstallation - Newbie"
- In reply to: Jibba Jabba: "Script to stop and start named"
- Next in thread: pbs: "Re: Script to stop and start named"
- Reply: pbs: "Re: Script to stop and start named"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|