diff --git a/domain_cleaner.sh b/domain_cleaner.sh index 7e3c865..dc9819b 100644 --- a/domain_cleaner.sh +++ b/domain_cleaner.sh @@ -23,10 +23,10 @@ domains=$(curl -s https://raw.githubusercontent.com/StevenBlack/hosts/master/dat for j in $domains; do output=$(dig @192.168.1.1 $j +short) if [ -z "$output" ];then - rojo "\$output is empty" + rojo "$output NXDOMAIN" echo "" - else - #echo "\$output is NOT empty" - echo $j\:$output + else + echo $j\:$output + echo -e "0.0.0.0\t$j" >> lista.txt fi done;