diff --git a/config/exclude-hosts-by-ips-dist.txt b/config/exclude-hosts-by-ips-dist.txt new file mode 100644 index 0000000..e3c6cda --- /dev/null +++ b/config/exclude-hosts-by-ips-dist.txt @@ -0,0 +1,12 @@ +^81\.91\.178\.252; +^37\.48\.77\.229; +^178\.208\.90\.38; +^213\.13\.30\.100; +^52\.169\.125\.34; +^81\.17\.19\.227; +^81\.91\.178\.242; +^5\.61\.58\.119; +^45\.81\.227\.72; +^209\.99\.40\.222; +^95\.211\.189\.202; +^34\.252\.217\.230; diff --git a/parse.sh b/parse.sh index d974bf9..b9f495c 100755 --- a/parse.sh +++ b/parse.sh @@ -19,6 +19,9 @@ sort -u config/include-hosts-{dist,custom}.txt > temp/include-hosts.txt sort -u config/include-ips-{dist,custom}.txt > temp/include-ips.txt sort -u temp/include-hosts.txt result/hostlist_original.txt > temp/hostlist_original_with_include.txt +awk -F ';' '{split($1, a, / \| /); for (i in a) {print a[i]";"$2}}' temp/list.csv | \ + grep -f config/exclude-hosts-by-ips-dist.txt | awk -F ';' '{print $2}' >> 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 if [[ "$RESOLVE_NXDOMAIN" == "yes" ]];