Created
August 9, 2023 07:45
-
-
Save vdchuyen/a6dc2a1ee1c350aa00bf5461a0db8d00 to your computer and use it in GitHub Desktop.
Check Cloud DNS
This file contains hidden or 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
#!/opt/homebrew/bin/fish | |
echo "Google DNS" | |
curl -s 'https://dns.google/resolve?name='$argv[1]'&type='$argv[2] | jq '.Answer' | |
echo -e "\nCloudflare DNS" | |
curl -s --http2 -H "accept: application/dns-json" 'https://1.1.1.1/dns-query?name='$argv[1]'&type='$argv[2] | jq '.Answer' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment