mirror of
https://bitbucket.org/anticensority/antizapret-pac-generator-light.git
synced 2024-11-23 21:56:04 +03:00
Ensure that nxdomain domains are included only once
This commit is contained in:
parent
1502197dc7
commit
5079fc09cc
3
parse.sh
3
parse.sh
@ -26,7 +26,8 @@ awk -f scripts/getzones.awk temp/hostlist_original_with_include.txt | grep -v -F
|
|||||||
|
|
||||||
if [[ "$RESOLVE_NXDOMAIN" == "yes" ]];
|
if [[ "$RESOLVE_NXDOMAIN" == "yes" ]];
|
||||||
then
|
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
|
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
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user