Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Script to Notify of Public IP Change

by marto (Bishop)
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.


Comment on Re: Script to Notify of Public IP Change
Download Code
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006285]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-12-28 08:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (179 votes), past polls