Code Monkey home page Code Monkey logo

godaddy-ip-ddns's Introduction

GoDaddy DDNS Public IP updater

Update the IP address of one or more of your records of one or more GoDaddy domain(s) every 5 minutes.

Build Status Docker Build Status

GitHub last commit GitHub commit activity GitHub issues

Docker Pulls Docker Stars Docker Automated

Download size Image size RAM usage CPU usage
3.9MB 9.61MB 6.64MB Very low

Based on:

Installation

1. GoDaddy credentials

GoDaddy Website

  1. Login to https://developer.godaddy.com/keys with your account credentials.

GoDaddy Developer Login

  1. Generate a Test key and secret.

GoDaddy Developer Test Key

  1. Generate a Production key and secret.

GoDaddy Developer Production Key

Obtain the key and secret of that production key.

In this example, the key is dLP4WKz5PdkS_GuUDNigHcLQFpw4CWNwAQ5 and the secret is GuUFdVFj8nJ1M79RtdwmkZ.

2. Installing and running

Option 1 of 3: Docker Compose

  1. Make sure you have Docker installed
  2. Download docker-compose.yml
  3. Edit it as you wish (see the section on environment variables
  4. Launch the container with docker-compose up -d

Option 2 of 3: Docker container

Docker container

  1. Make sure you have Docker installed

  2. Launch the Docker container from the image with:

    sudo docker run -d --name=godaddyddns --restart=always \
    -e TARGETS=[[mydomain.com,A,@];[mydomain2.com,A,*]] \
    -e KEY=dLP4WKz5PdkS_GuUDNigHcLQFpw4CWNwAQ5 \
    -e SECRET=GuUFdVFj8nJ1M79RtdwmkZ -e DELAY=1200 \
    qmcgaw/godaddy-ip-ddns

Replace the environment variables with your own values, refer to the section on environment variables

Option 3 of 3: using the Bash script godaddyddns.sh directly

  1. Set the necessary variables

    TARGETS="[[mydomain.com,A,@];[mydomain2.com,A,*]]"
    KEY=dLP4WKz5PdkS_GuUDNigHcLQFpw4CWNwAQ5
    SECRET=GuUFdVFj8nJ1M79RtdwmkZ
    DELAY=1200 # optional
    • Option 1 of 2: Set environment variables with a terminal
    • Option 2 of 2: Paste this block of code in godaddyddns.sh after the first line #!/bin/sh
    • Replace the values with your own values, refer to the section on environment variables
  2. Make the script executable with:

    sudo chmod +x godaddyddns.sh
  3. Test the script by running it with:

    ./godaddyddns.sh
  4. Run the shell script with screen for example or as a service.

Environement variables

Environement variable Value Optional
TARGETS Array containing [Domain name, Record type, Record name] No
KEY Production key's key No
SECRET Production key's secret No
DELAY 1200 Yes, defaults to 300

3. Testing

With a browser, go to https://dcc.godaddy.com/manage/yourdomain.com/dns (replace yourdomain.com) and check the Value of the record of type A is set to your current IP address

GoDaddy DNS management

You might want to try to change the IP address to another one to see if the update actually occurs.

godaddy-ip-ddns's People

Contributors

qdm12 avatar

Watchers

James Cloos avatar Jarvis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.