Self-Reporting IP Changes

I’ve been wanting to have a script that checks for changes in IP addresses and alerts via email if there has been a change. I also wanted the script to work with gmail and on servers that may not be configured as full mail servers–

As it turns out there exists a linux program called sendEmail that fits the bill nicely. It’s written in perl and can talk to mail servers over secure ports without any additional mail configuration.

The bash script constantly logs and checks the IP address and emails any changes. It’s especially helpful on networks with dynamic IP addresses.

Tags: , , , , , ,

Comments are closed.

Search

Websites

  • slide
  • slide
  • slide
  • slide