Code Monkey home page Code Monkey logo

noip-updater's Introduction

noip-updater

This is a simple Docker image to keep your No-IP.com Dynamic DNS hosts up to date.

Based on: This repo

Run with Docker:

To run the image with docker use the following command:

    docker run -d \
    -e NOIP_USER=<Your No-IP username or email>
    -e NOIP_PASSWORD=<Your No-IP password> \
    -e NOIP_HOST=<Your No-IP host-name you want to update> \
    -e NOIP_INTERVAL=<The update interval (default: 60 minutes)> \
    papela/noip-updater:latest

To be able to use the image on an armx64 processor, use the image: papela/noip-updater:armx64latest

Correct time in container:

For logging purposes you would want to set the correct time in the container. We link both timezone and localtime to the docker container as such:

    -v /etc/timezone:/etc/timezone:ro 
    -v /etc/localtime:/etc/localtime:ro 

Using the script file

You can also download the script file and modify it yourself then run outside of Docker. The only dependencies required are: curl and sleep (most Linux distros have these preinstalled)

About:

What this does is:

  1. Check if you variables are set except for NOIP_INTERVAL since this has been set at 60 minutes by default (If the time is equal to or less than 0, it will only be executed once and then exit).
  2. It uses curl to update the given No-IP host-name.
  3. It sleeps for the given interval (as long as it is not 0) and then starts at step 2 again.

noip-updater's People

Contributors

papela avatar

Stargazers

 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.