Giter Site home page Giter Site logo

swipswaps / godaddy-ddns-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from navilg/godaddy-ddns

0.0 1.0 0.0 52 KB

Dynamic DNS with GoDaddy

Home Page: https://www.youtube.com/watch?v=lnPPdYexf4E

License: GNU General Public License v3.0

Shell 100.00%

godaddy-ddns-2's Introduction

README

What is this repository for?

  • Public IP address of many hosting servers are dynamic and it changes based on availability. Some examples include AWS EC2 instance, Home Servers, GCP Cloud, etc.
  • This require updating the IP address in GoDaddy DNS record so that requests are forwarded to correct IP address.
  • This script uses cron jobs to check the current Public IP address of server and update the IP address in GoDaddy Manage DNS.
  • OS: Linux. Tested on Ubuntu server 18.04 LTS with BASH shell.
  • Required utility tools: curl, BASH shell.

Features

  • Automatically updates Public IPv4 address in GoDaddy A Record
  • Minimal and easy setup.
  • Minimal dependency on extra tools.
  • Lightweight
  • Minimal resource requirement

How do I get set up ?

  • Clone this repository in your server.
  • Open godaddyDDNS/godaddy-ddns.properties file
  • Update the properties values as below:

domain=domain.com

name=subdomainORwww

ttl=ttlValueInSeconds

key=key-value-from-godaddy-developer-console

secret=secret-key-value-from-godaddy-developer-console

e.g. To update DNS Name navi.example.com

domain=example.com

name=navi

key=cvvgfvfd54jghgz8s

ttl=3600

secret=dfgsx6daflx5]gkhhi8yjxf
  • Key and Secret can be generated from GoDaddy Developer page. https://developer.godaddy.com/getstarted
  • After updating. Run the script. ./godaddy-ddns.sh
  • Check the log in godaddy-ddns.log file
  • If log status is OK. Its working fine. Verify the DNS record in GoDaddy account.
  • Updating the DNS record in GoDaddy doesn't mean DNS server is also updated. DNS server updation completely depends on TTL value. Its good to have short TTL value for highly dynamic IP address.
  • Create a crontab entry to run the godaddy-ddns.sh file every five minutes.
crontab -e

Add below lines

*/5 * * * * /Path/to/godaddy-ddns/godaddy-ddns.sh >/dev/null 2>&1

@reboot /Path/to/godaddy-ddns/godaddy-ddns.sh >/dev/null 2>&1

Save it

NOTES: GoDaddy supports 60 requests per minutes. This scripts uses 2 requests. So, Make sure to create cronjob accordingly so that request doesn't exceed 60 request per minute or else it will fail.

Contribution guidelines

How to reach me ?

Special mention to https://github.com/markafox/GoDaddy_Powershell_DDNS which is base for this script.

godaddy-ddns-2's People

Contributors

navilg avatar

Watchers

 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.