From f2dd73b7f01e0136f67914c059ac2682590132a5 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Sun, 4 Sep 2022 21:20:40 +0300 Subject: [PATCH] Add 2 hour timeout for nxresolve script, it hangs sometimes --- parse.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.sh b/parse.sh index cae6f6b..c15aba6 100755 --- a/parse.sh +++ b/parse.sh @@ -26,7 +26,7 @@ awk -f scripts/getzones.awk temp/hostlist_original_with_include.txt | grep -v -F if [[ "$RESOLVE_NXDOMAIN" == "yes" ]]; then - scripts/resolve-dns-nxdomain.py result/hostlist_zones.txt >> temp/exclude-hosts.txt + timeout 2h scripts/resolve-dns-nxdomain.py result/hostlist_zones.txt >> temp/exclude-hosts.txt awk -f scripts/getzones.awk temp/hostlist_original_with_include.txt | grep -v -F -x -f temp/exclude-hosts.txt | sort -u > result/hostlist_zones.txt fi