Loaded zone files query

Lightner, Jeff JLightner at water.com
Tue Jul 10 19:54:57 UTC 2012

That assumes its Linux and is being logged to local /var/log/messages.   For other *nix the log location and name is apt to be different.

-----Original Message-----
From: bind-users-bounces+jlightner=water.com at lists.isc.org [mailto:bind-users-bounces+jlightner=water.com at lists.isc.org] On Behalf Of Carl Byington
Sent: Tuesday, July 10, 2012 3:47 PM
To: bind-users at lists.isc.org
Subject: Re: Loaded zone files query

Hash: SHA1

On Tue, 2012-07-10 at 13:22 -0600, Kirk Hoganson wrote:
> Does anyone know of a simple way to discover how many zone files bind
> has successfully loaded after the daemon starts?

cd /var/log
rm -f named.temp*
grep 'named' messages | \
   csplit --prefix=named.temp - '/named.*starting BIND/' >/dev/null f=$(ls -1 named.temp* | tail -1) grep 'zone.*loaded serial' $f | wc -l rm -f named.temp*

Version: GnuPG v2.0.14 (GNU/Linux)


Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
bind-users at lists.isc.org

Athena(r), Created for the Cause(tm)
Making a Difference in the Fight Against Breast Cancer

CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.

More information about the bind-users mailing list