Skip to content

Instantly share code, notes, and snippets.

@cyounkins
Created July 13, 2021 20:09
Show Gist options
  • Save cyounkins/ea1f1a4d098cddff0bf3c9182ec20528 to your computer and use it in GitHub Desktop.
Save cyounkins/ea1f1a4d098cddff0bf3c9182ec20528 to your computer and use it in GitHub Desktop.
#!/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