From 5079fc09cc1d5581b3b48329b252e4c8f87d8401 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Wed, 12 Jun 2024 17:57:37 +0300 Subject: [PATCH] Ensure that nxdomain domains are included only once --- parse.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parse.sh b/parse.sh index c840f3f..9de9bc5 100755 --- a/parse.sh +++ b/parse.sh @@ -26,7 +26,8 @@ awk -f scripts/getzones.awk temp/hostlist_original_with_include.txt | grep -v -F if [[ "$RESOLVE_NXDOMAIN" == "yes" ]]; then - timeout 2h 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/nxdomain-exclude-hosts.txt + cat temp/nxdomain-exclude-hosts.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