Who forgot to update named.root ?

Me.

So the latest script added to my list of cron jobs running on my home server is:

#!/bin/ksh

TMPDIR=/tmp/named_check_$$.$RANDOM

trap "cd / && test -d $TMPDIR && rm -r $TMPDIR" EXIT
mkdir $TMPDIR || exit
cd $TMPDIR || exit

wget -q ftp://ftp.internic.net/domain/named.root
if ! cmp -s named.root /var/named/db.cache
then
        mv named.root ~
        mailx -s "new named.root file " $LOGNAME << EOF

There is a new named.root file in ~/named.root it needs to be verified and then
installed as /var/named/db.cache.


EOF
fi

All after the internet broke in the house. My initial suspicion that one of the kids had typed google into google was wide of the mark. My old named.root file was old, really, really old. So now I'm checking once a month that my named.root file is upto date

Comments:

Post a Comment:
Comments are closed for this entry.
About

This is the old blog of Chris Gerhard. It has mostly moved to http://chrisgerhard.wordpress.com

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today