diff --git a/utils/test-domain.sh b/utils/test-domain.sh new file mode 100644 index 0000000000000000000000000000000000000000..223a5f3bbc1f0a49e70283ec635bc6c0d1e3c6a6 --- /dev/null +++ b/utils/test-domain.sh @@ -0,0 +1,10 @@ +#!/bin/bash +cd /data/domains +my_ip=`curl http://ipv4.icanhazip.com/` +echo "My IP is $my_ip" +for domain in `ls .`; do + domain_ip=`host ${domain} | awk '/has address/ { print $4 }'` + if [[ "${domain_ip}" != "${my_ip}" ]]; then + echo "$domain has this IP: $domain_ip" + fi +done