Created
May 23, 2014 12:55
-
-
Save s10wen/823e76d80322b0f28740 to your computer and use it in GitHub Desktop.
Bash script to watch for DNS changes
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
#!/bin/bash | |
while :; | |
do | |
echo "$(date)" | |
dig sitename.com; | |
sleep 600; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copy code and save file as
watch.sh
, then runsh watch.sh
. This will timestamp, dig, then wait 10 minutes, then repeat. Obviously changesitename.com
for the site you'd like to watch 😉