Update BIND Root Hints File
I was attempting to have my BIND DNS root zone file automatically updated on my Ubuntu 11.10 LTS server, and came across this link:
http://mugurel.sumanariu.ro/linux/how-to-update-the-root-hints-data-file-for-bind-named-server/
I created a file named /etc/cron.d/bind ; with the following contents:
33 0 2 * * root ( cp /etc/bind/db.root /etc/bind.db.root.$( date -u +’%Y%m%d-%H%M%S’ ) ; /usr/bin/dig +bufsize=1200 +norec NS . @a.root-servers.net > /etc/bind/db.root ; /usr/sbin/rndc reload > /dev/null 2>&1 )
On the 2nd day of the month, at 0:33 local time, it will backup the existing db.root file, and overwrite with the authoritative contents from the a.root-servers.net.




