Make used dns server more visible
This commit is contained in:
parent
16a7bee6d0
commit
04b40b4c38
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user