Better counting on domains blocked
This commit is contained in:
parent
04b40b4c38
commit
ab53c7be75
|
@ -1,7 +1,6 @@
|
|||
#!/bin/bash
|
||||
source <(curl -s https://gitea.avc.cx/borekon/scripts/raw/branch/main/colores.sh)
|
||||
|
||||
ip_to_find="0.0.0.0"
|
||||
blocked=0
|
||||
|
||||
#if [ -z "$1" ]
|
||||
|
@ -19,7 +18,7 @@ azul "##################"
|
|||
for j in $domains; do
|
||||
echo -e "${YELLOW}$j${NC}:"
|
||||
output=$(dig -4 @${dns[0]} $j +short)
|
||||
if [[ "$output" == *"$ip_to_find"* ]]; then
|
||||
if [[ -z $output || $output == "0.0.0.0" ]]; then
|
||||
verde $output
|
||||
((blocked++))
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user