Giter VIP home page Giter VIP logo

docker-ddns-updater's Introduction

docker-ddns-updater

A docker wrapper for evil-shrike/ddns-updater to implement auto update DDNS for namecheap.

Installations & Usages

1. Create config.json file

Create a config.json as following:

{
 "domains": [{
   "service": "namecheap",
   "name": "example.com",
   "hosts": ["@", "www"],
   "settings": {
     "password": "NAMECHEAP_API_KEY"
   }
 }],
 "interval": { "days": 1 }
}

Some parameters need to change:

  • name - name of domain, e.g. "example.com" Change the domain
  • hosts - an array of host to map to the domain, if you only want naked domain ("example.com") specify "@" or omit field completely.
  • settings:password - put your namecheap DDNS token here.
    (Located at Accounts > Domain List > Advanced DNS)

for futher details, please check evil-shrike/ddns-updater.

2. Run docker at your machine

Run the command and mount the config.json into container.

docker run --restart=always -d --name ddns-updater -v $PWD/config.json:/opt/my-ddns/config.json j796160836/docker-ddns-updater

It will display something like this if no errors.

Checking. Next check in 1 days
External IP resolved via ipify : xxx.xxx.xxx.xxx
IP changed from undefined to xxx.xxx.xxx.xxx
updated: {"service":"namecheap","name":"example.com","host":"www"}

Acknowledgments

Thanks evil-shrike/ddns-updater for this awesome project.

License

MIT

docker-ddns-updater's People

Contributors

j796160836 avatar

Watchers

 avatar James Cloos 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.