$TTL errors

Joseph S D Yao jsdy at center.osis.gov
Fri Apr 12 19:54:26 UTC 2002


On Fri, Apr 12, 2002 at 01:37:29PM -0400, Georgeson, Evan [NCSUS Non J&J] wrote:
> Hi,
> 
> 	I was wondering if you could inform me as to how I can suppress this
> error (it fills my log) as I have 6300+ zones allocated I cannot go through
> and insert TTL.
> # No default TTL ($TTL <value>) set, using SOA minimum instead

Assumptions: zone files are named zone.* and are in /var/named, and you
want your $TTL to be one day.

=======================================================================
#!/bin/ksh

cd /var/named
for i in zone.*; do
	check=`grep '^\$TTL' "$i"`
	if [ "" != "$check" ]; then continue; fi
	ed - "$i" << End_Of_Edit
1i
\$TTL		1d
.
w
q
EndOfEdit
done
=======================================================================

-- 
Joe Yao				jsdy at center.osis.gov - Joseph S. D. Yao
OSIS Center Systems Support					EMT-B
-----------------------------------------------------------------------
   This message is not an official statement of OSIS Center policies.


More information about the bind-users mailing list