Skip to content

Symple python script to update a host A record in a GoDaddy hosted DNS zone, like DDNS

License

Notifications You must be signed in to change notification settings

jlegido/godaddy_dynamic_dns

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

godaddy_dynamic_dns

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.

License:

See the included LICENSE file

Requirements:

  • Python v2.7 (not tested in 3.x)
  • The following added modules: logging, pif, smtplib, pygodaddy, email.mime.text

Installation:

  • 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.

Options:

run 'python update_ip.py -h' to see options.

About

Symple python script to update a host A record in a GoDaddy hosted DNS zone, like DDNS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%