Update the IP address of one or more of your records of one or more GoDaddy domain(s) every 5 minutes.
Download size | Image size | RAM usage | CPU usage |
---|---|---|---|
3.9MB | 9.61MB | 6.64MB | Very low |
Based on:
- Alpine Linux
- Bash
- Curl
- Ca-Certificates
- Login to https://developer.godaddy.com/keys with your account credentials.
- Generate a Test key and secret.
- Generate a Production key and secret.
Obtain the key and secret of that production key.
In this example, the key is dLP4WKz5PdkS_GuUDNigHcLQFpw4CWNwAQ5
and the secret is GuUFdVFj8nJ1M79RtdwmkZ
.
- Make sure you have Docker installed
- Download docker-compose.yml
- Edit it as you wish (see the section on environment variables
- Launch the container with
docker-compose up -d
-
Make sure you have Docker installed
-
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
-
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
-
Make the script executable with:
sudo chmod +x godaddyddns.sh
-
Test the script by running it with:
./godaddyddns.sh
-
Run the shell script with screen for example or as a service.
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 |
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
You might want to try to change the IP address to another one to see if the update actually occurs.