Godaddy DNS IP update.
Version: September-02-2020
Created by Reaz Baksh
Web site: https://sourceforge.net/projects/godaddy-dns-ip
This Update_IP consists of two scripts, run_first.py and update_ip.py.
Between the two, the purpose is to automatically update the GoDaddy DNS ip of all your domains that are hosted using 1 (one) ip address
To start first make sure that the python you are using is between version 3.5.3 and 3.8.0 as it was tested using both.
run_first.py
Run the ‘run_first.py’ script to setup the other files to make the other script work.
#python3 ./run_first.py
This script will create 3 files:
godaddykey.json this file holds the domain name and the two associated keys
ip.txt this file holds the public IP address of your web server
logfile.log this is the log file. It will log all the information that takes place.
All 5 files will be created within the same folder as the two original files.
During setup the following questions will be asked:
-Python modules that are needed will be checked. If not installed they will have to be manually installed using PIP3
-Continue with setting up IP file? Y/N: --> this sets up the ip file that holds the current public ip address of your web server
-Continue with setting up JSON file? Y/N: --> this sets up the JSON file that holds the Godaddy keys to your domain
-How many domains need updating with the same IP? this asks how many domains that resolve to the same ip that is hosted on your server. Minimum 1.
-Enter domain name: --> enter the name of the domain such as. dhantal.com or broadcasttech.net.
-Enter domain key: --> the key for the domain. This can be got from GoDaddy.
- Enter domain secret: --> the secret for the domain. This can be got from GoDaddy.
-Continue with setting up of log file? Y/N: creating the logfile.
Once ‘run_first.py’ is complete the 3 extra files will be created.
Update_ip.py
This file is now ready to be run. Normally it is run under cron every 5 minutes using the following:
*/5 * * * * python3 <path to="">update_ip.py</path>