Skip to content

AlexMerchant/get-public-ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

get-public-ip

Objective: A bash script that acts as a simple dynamic DNS service to update configured domain records to reflect the dynamically allocated IP address for the host server.

This aim of the script is to have it fulfill the following tasks:

  • Check for the existance of it's configuration file used to store sensitive values (ignored by Git)

    • Or perhaps have it check for environmenttal variables configured for the purpose of this script in PATH?
  • Use the OpenDNS resolver to retrieve the server's public-facing IP address

  • Compare the most recently retrieved IP address with the last IP address stored in the configuration to check for a value change

    • If the values differ

      • Update the IP address in Cloudflare
      • Log the change in a logfile
      • Add the value in the Google Sheet Log
    • If the values are the same

      • Log the check in the logfile, but note that nothing changed

About

Shell script to retrieve public IP address

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages