I tend to use:
use Socket; if ($ip = gethostbyname($domain)) { $ip = inet_ntoa($ip); print "IP address is $ip\n"; } else { print "Could not resolve name.\n"; }
Not amazing, but does the job :) I assume you're going out to "whatismyip.com" because the IP address you want is not the box you run the script on?
Gordon.
In reply to Re: Dyndns.org Updating Client
by TheFluffyOne
in thread Dyndns.org Updating Client
by lithron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |