Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Script to Notify of Public IP Change

by marto (Archbishop)
on Nov 29, 2012 at 16:10 UTC ( #1006285=note: print w/replies, xml ) Need Help??

in reply to Script to Notify of Public IP Change

"unsure of whether or not their ISP provided them with a static or dynamic IP address"

Have you tried asking them? Or having the Police ask them on your behalf, as they are the customer? I'd consider using Dynamic_DNS, rather than reply on finding out changes via a cron job.

"Sometimes, it seems to fetch a "blank" when trying to resolve the IP"

Add some checking in your code, ensure $ip is a valid IP address, handle any errors accordingly.

Replies are listed 'Best First'.
Re^2: Script to Notify of Public IP Change
by Arkevius (Initiate) on Nov 29, 2012 at 16:21 UTC
    Well, I think the main reason why I went ahead and did the script was because I'm still new to Perl and wanted to challenge myself with this task, and because it seemed simpler at the time than getting on the phone and talking to someone.

      Fair enough, though as you know error checking/data validation isn't just a Perl thing. DDNS would be a more robust solution IMHO.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006285]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2018-06-23 11:27 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (125 votes). Check out past polls.