Obtain an IP to compare through the local DNS server first
Multi-platform inadyn, inadyn-advanced DDNS client fork.
Brought to you by:
bzbhoover
It's much faster to obtain an IP (wich we need to compare with the current IP) through the local DNS server first using it's domain name. And then, ONLY if it's not possible the inadyn-mt may try to obtain it through dyndns.com. We can easily obtain an IP address from a local DNS server by the following command:
LOCAL_IP_DNS=`dig test.dyndns.biz 2> /dev/null|grep "test.dyndns.biz."|grep -v ';'|awk '{ print \$5 }'`;
And I'm pretty sure it's much easier to do that with some C function.