#!/bin/bash # update-dlv.sh OUT_DIR=${1} if [ "" = "${OUT_DIR}" ] then OUT_DIR=/etc/unbound fi cd ${OUT_DIR} wget 'http://ftp.isc.org/www/dlv/dlv.isc.org.key' --quiet -O ./dlv.isc.org.key.tmp if test 0 -ne $? then echo "Unable to update dlv.isc.org.key" else cmp ./dlv.isc.org.key ./dlv.isc.org.key.tmp >/dev/null if test 0 -ne $? then cp ./dlv.isc.org.key.tmp ./dlv.isc.org.key /usr/sbin/unbound-control reload fi rm -f ./dlv.isc.org.key.tmp fi #!/bin/bash # update-itar.sh OUT_DIR=${1} if [ "" = "${OUT_DIR}" ] then OUT_DIR=/etc/unbound fi cd ${OUT_DIR} wget 'ftp://ftp.iana.org/itar/anchors.mf' --quiet -O ./anchors.mf.tmp if test 0 -ne $? then echo "Unable to update anchors.mf" else cmp ./anchors.mf ./anchors.mf.tmp >/dev/null if test 0 -ne $? then cp ./anchors.mf.tmp ./anchors.mf /usr/sbin/unbound-control reload fi rm -f ./anchors.mf.tmp fi #!/bin/bash # update-named.sh OUT_DIR=${1} if [ "" = "${OUT_DIR}" ] then OUT_DIR=/etc/unbound fi cd ${OUT_DIR} wget 'http://internic.net/domain/named.cache' --quiet -O ./named.cache.tmp if test 0 -ne $? then echo "Unable to update named.cache" else cmp ./named.cache ./named.cache.tmp >/dev/null if test 0 -ne $? then cp ./named.cache.tmp ./named.cache /usr/sbin/unbound-control reload fi rm -f ./named.cache.tmp fi #!/bin/bash # update-trust.sh OUT_DIR=${1} if [ "" = "${OUT_DIR}" ] then OUT_DIR=/etc/unbound fi cd ${OUT_DIR} wget 'http://secspider.cs.ucla.edu/trust-anchors.conf' --quiet -O ./trust-anchors.conf.tmp if test 0 -ne $? then echo "Unable to update trust-anchors.conf" else cmp ./trust-anchors.conf ./trust-anchors.conf.tmp >/dev/null if test 0 -ne $? then cp ./trust-anchors.conf.tmp ./trust-anchors.conf /usr/sbin/unbound-control reload fi rm -f ./trust-anchors.conf.tmp fi