Menu

#7 Obtain an IP to compare through the local DNS server first

open
nobody
None
5
2011-04-26
2011-04-26
neocortex
No

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.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB