ydns-simple: use IP addresses directly

OpenDNS secondary resolver, closes #3.
This commit is contained in:
Aminda Suomalainen 2015-01-19 08:19:42 +02:00
parent bd3d09c6e8
commit ee47357792

View File

@ -18,7 +18,7 @@ PASSWORD=""
HOSTNAME=""
# Get IPv4 address
WAN_IP4=$(dig +short myip.opendns.com @resolver1.opendns.com)
WAN_IP4=$(dig +short myip.opendns.com @208.67.220.220)
if [ -f $HOME/.wan_ip4-ydns.txt ]; then
OLD_WAN_IP4=$(cat $HOME/.wan_ip4-ydns.txt)
else
@ -27,7 +27,7 @@ else
fi
# Get IPv6 address
WAN_IP6=$(dig +short myip.opendns.com AAAA @2620:0:ccc::2)
WAN_IP6=$(dig +short myip.opendns.com AAAA @2620:0:ccd::2)
if [ -f $HOME/.wan_ip6-ydns.txt ]; then
OLD_WAN_IP6=$(cat $HOME/.wan_ip6-ydns.txt)
else