Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # checks ip of darkglass.net server in DNS versus via public call
- # probably don't have to note that this could easily become a problem.
- DNSADDRESS=$(dig @ns1mpz.name.com darkglass.net A +short)
- PUBLICIP=$(wget http://ipecho.net/plain -O - -q ; echo)
- if [ "$DNSADDRESS" == "$PUBLICIP" ]; then
- echo "DGS OK!"
- else
- echo "DGS IP mismatch!"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement