Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Script to Notify of Public IP Change

by marto (Cardinal)
on Nov 29, 2012 at 16:10 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-20 01:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found