-
-
Save cyounkins/ea1f1a4d098cddff0bf3c9182ec20528 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fish | |
while true | |
for dns in 8.8.8.8 208.67.222.222 4.2.2.1 8.26.56.26 84.200.69.80 9.9.9.9 1.1.1.1 | |
for domain in google.com www.google.com youtube.com amazon.com facebook.com zoom.us ebay.com reddit.com wikipedia.org netflix.com salesforce.com walmart.com | |
drill $domain @$dns | grep -E "^$domain" | sed -E "s|^([^ \t]*)[ \t]+([0-9]+).*|\1 \2|" | head -n1 >> $domain-$dns.txt | |
end | |
end | |
sleep 0.2 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment