Simple Python script to update a GoDaddy DNS hosted domain name, like DDNS This script will find your real ip address, and update a DNS A record in a GoDaddy domain DNS configuration. (The host needs to exist already) This gives you a cheap, easy way to do Dynamic DNS using GoDaddy.
You will be emailed if changed are made (or optionally (-v) any time the script runs.)
Note: author assumes no responsibility for the GoDaddy User Agreement. You will need to figure out for yourself if this is acceptible or not.
See the included LICENSE file
- Python v2.7 (not tested in 3.x)
- The following added modules: logging, pif, smtplib, pygodaddy, email.mime.text
- copy the file godaddy.dist to godaddy.py
- modify this file, and set your appropriate domain, host to update, etc
- make sure the host A record exists. If create it will some invalid IP. Set the timeout value to whatever works for your environment.
- run the script from the command line, "python update_ip.py" It should create a log file with output. Check to make sure all works.
- now automate as needed, using cron, or whatever your environment needs
- on Linux, you can run this without using the 'python' prefix by making the script executable (chmod +x). Check your python path and the file update_ip.py if this does not work.
run 'python update_ip.py -h' to see options.