1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-11-25 20:00:41 +08:00
NeoNetwork/scripts/check-named-zones.sh

26 lines
537 B
Bash
Raw Normal View History

2020-12-16 16:01:12 +08:00
#!/usr/bin/env bash
# shellcheck disable=SC1091
2020-12-16 16:10:58 +08:00
set -xeo pipefail
2020-12-16 16:01:12 +08:00
[ -n "$CI" ]
2020-12-16 16:08:38 +08:00
install() {
sudo DEBIAN_FRONTEND=noninteractive apt \
-o Dpkg::Options::=--force-confold \
install -y --no-install-recommends \
bind9-utils
}
install || { sudo apt update -qq; install; }
2020-12-16 16:01:12 +08:00
2020-12-16 16:08:38 +08:00
check() {
2021-04-14 14:30:56 +08:00
PATH=/sbin:/usr/sbin:$PATH named-checkzone -i local -l 86400 $@
2020-12-16 16:08:38 +08:00
}
2020-12-16 16:01:12 +08:00
2021-04-16 14:43:50 +08:00
pushd generated/dns
2020-12-16 16:01:12 +08:00
check 'neo' neonetwork
check '127.10.in-addr.arpa' db.10.127
check '7.2.1.0.0.1.d.f.ip6.arpa' db.fd10.127
popd