Created
July 17, 2013 00:09
-
-
Save pansapiens/6016434 to your computer and use it in GitHub Desktop.
Bash one liner to monitor if the IP for a domain has changed each hour. Beep and tiny window alert. Users should change the domain (www.example.com) and the domains current A record IP (192.168.0.1).
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
while true; do if host www.example.com | grep "192.168.0.1"; then sleep 3600; else printf "\a"; xmessage -center "Domain propagated"; fi done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment