Skip to content

Instantly share code, notes, and snippets.

@pansapiens
Created July 17, 2013 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pansapiens/6016434 to your computer and use it in GitHub Desktop.
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).
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