Listing 2: Sample makefile clip for DNS maintenance
named.soa: $(NAMED)
get -e -s s.named.soa
delta -y"Increment Serial Number to activate change" s.named.soa
get -g -lp s.named.soa | head -1 > .m1
prs -e -r`cat .m1` -d";:I:\t:P:\t:D:\t:C:" s.named.soa | grep "^;" > .m2
get -s -p s.named.soa > .m4
m4 -DDELTA=.m2 .m4 > named.soa
chmod 444 named.soa
rm .m1 .m2 .m3 .m4
|