1
0
Fork 0

Adding upstream version 5.7.5.

Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
Daniel Baumann 2025-06-21 13:56:17 +02:00
parent bd60502c59
commit fbc604e215
Signed by: daniel.baumann
GPG key ID: BCC918A2ABD66424
1284 changed files with 265844 additions and 0 deletions

28
scripts/update-root-hints.sh Executable file
View file

@ -0,0 +1,28 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
set -o nounset -o xtrace
TEMP_FILE=/tmp/root.hints
HINTS_FILE=etc/root.hints
# download latest root hints
wget -O ${TEMP_FILE} https://www.internic.net/domain/named.root
# strip comments for diff
sed '/^;/d' ${TEMP_FILE} > ${TEMP_FILE}.clean
sed '/^;/d' ${HINTS_FILE} > ${HINTS_FILE}.clean
# check for changes
diff ${TEMP_FILE}.clean ${HINTS_FILE}.clean >/dev/null
CHANGED=$?
if [ $CHANGED -ne 0 ]; then
# update root.hints
mv ${TEMP_FILE} ${HINTS_FILE}
fi
# cleanup
rm -f ${TEMP_FILE} ${TEMP_FILE}.clean ${HINTS_FILE}.clean
# signal change with exit code
exit $CHANGED