Make used dns server more visible

This commit is contained in:
borekon 2024-05-31 07:18:10 +00:00
parent 16a7bee6d0
commit 04b40b4c38

View File

@ -13,7 +13,9 @@ blocked=0
dns_raw=${1:-$(cat /etc/resolv.conf | grep ^nameserver | cut -d " " -f 2)}
dns=($dns_raw)
domains=$(curl -s https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts | grep -v ^# | shuf -n 10 | cut -d" " -f2)
azul "##################"
verde "Using ${dns[0]} DNS server"
azul "##################"
for j in $domains; do
echo -e "${YELLOW}$j${NC}:"
output=$(dig -4 @${dns[0]} $j +short)