Created
June 20, 2020 09:14
-
-
Save erolj/5bee09f3842155c718b9e540646d54dc to your computer and use it in GitHub Desktop.
Script sederhana deteksi sebuah domain menggunakan cloudflare ns atau tidak.
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
#!/bin/bash | |
read -rp "Masukkan nama domain: " DOMAIN | |
CHKDOMAIN=$(dig ns "${DOMAIN}" +short | grep -o cloudflare | head -1) | |
if [ ! "${CHKDOMAIN}" = "cloudflare" ]; then | |
echo "Tidak menggunakan NS Cloudflare" | |
else | |
echo "Menggunakan NS Cloudflare" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment