Exclude hosts by their IP addresses in the Registry

This commit is contained in:
ValdikSS 2022-01-05 00:39:29 +03:00
parent 4d6223842b
commit 485b20f36e
2 changed files with 15 additions and 0 deletions

View File

@ -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;

View File

@ -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 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 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 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" ]]; if [[ "$RESOLVE_NXDOMAIN" == "yes" ]];