|
|
Keeping a Historical List of IPs
One thing I added to my implementation of this type of script is a feature that keeps a historical log of when each IP was in use. This is handy if you get asked what your IP was on a particular date or if you want to have an idea of how long your dynamic IPs last.
First, a script that I call iplog (you will have to fix the absolute path but be sure to keep the double >>):
Then something like
in your crontab.
This can run along side whatever other (email me, create a web page, etc..) solution you use to notify you of changes to your IP address - it's just keeping a local log of what IP was in use. The log file itself is three comma separated fields: IP, seconds since epoch and a human readable datestamp. Accordingly, here are some handy things:
The first column in the iphistory is the number of periods (hours in this example) that the given IP was in use with the last one listed being the current IP.
If you want to setup your own CGI that tells you your current IP here's how to in various scripting languages:
These, of course, go on an Internet exposed web server with a fixed address, not your local system.
-m |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.07 seconds |
|