in reply to Dyndns.org Updating Client
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Dyndns.org Updating Client
by lithron (Chaplain) on Nov 24, 2003 at 20:29 UTC |