Use only ipv4

Added -4 to dig command
This commit is contained in:
borekon 2024-03-25 18:02:44 +00:00
parent 409fa156eb
commit 69a0197525

View File

@ -15,7 +15,7 @@ domains=$(curl -s https://raw.githubusercontent.com/StevenBlack/hosts/master/dat
verde "Using $dns DNS server"
for j in $domains; do
echo -e "${YELLOW}$j${NC}:"
output=$(dig @$dns $j +short)
output=$(dig -4 @$dns $j +short)
if [[ "$output" == *"$ip_to_find"* ]]; then
verde $output
((blocked++))