Debian Codegraph @

update-root-hints.sh

raw symbols SCIP
1 #!/bin/sh -e
2 # This data is documented at <https://www.iana.org/domains/root/files>.
3
4 wget -O root.hints.NEW https://www.internic.net/domain/named.root
5
6 # ignore the update date, which changes daily
7 if diff -u --ignore-matching-lines='^;[[:space:]]*\(last update\|related version of root zone\):' root.hints root.hints.NEW; then
8 echo "root.hints has NOT changed."
9 rm root.hints.NEW
10 exit
11 fi
12
13 echo "root.hints has changed."
14
15 wget -O root.hints.sig.NEW https://www.internic.net/domain/named.root.sig
16
17 gpgv --keyring $(pwd)/registry-admin.key root.hints.sig.NEW root.hints.NEW
18
19 mv root.hints.NEW root.hints
20 mv root.hints.sig.NEW root.hints.sig
21