Coder Social home page Coder Social logo

ionos-dyndns's Introduction

IONOS DNYDNS


Disclaimer
This project showcases Kotlin's multiplatform capabilities for command line applications. It is built with Kotlin/Native for linuxX64 and macosX64 as well as for the JVM
Note: Right now, the native binaries are relying on the -native-mt branch of coroutines and are therefore leaking memory


Usage

Configuration

The service binary is looking for a configuraiton file in ~/.ionos-dyndns/config.json

Sample:

{
  "ipRefreshInterval": "1m",
  "domains": [
    {
      "apiKey": "someApiKeyThatIProbablyWontPushIntoAnyRepo",
      "rootDomainName": "sellmair.io",
      "targetDomainName": "sellmair.io",
      "timeToLive": "5m",
      "ipProvider": "amazon"
    }, 
    {
      "apiKey": "someApiKeyThatIProbablyWontPushIntoAnyRepo",
      "rootDomainName": "sellmair.io",
      "targetDomainName": "subdomain.sellmair.io",
      "timeToLive": "5m",
      "ipProvider": "amazon"
    }, 
    {
      "apiKey": "someApiKeyThatIProbablyWontPushIntoAnyRepo",
      "rootDomainName": "sellmair.io",
      "targetDomainName": "anotherdomain.sellmair.io",
      "timeToLive": "5m",
      "ipProvider": "amazon"
    }
  ]
}
ipRefreshInterval

Time between the application shall re-check if the external current IP address changed

  • 1m: Check current IP address every minutes
  • 1.5h: Check current IP address every 1.5 hours
  • 0.33d: Check current IP address 3 times a day
domains

List of domains to update

apiKey

The ionos api key (see: https://developer.hosting.ionos.de/docs/getstarted#support) associated with the domain

rootDomainName

The name of the domain that you want to update (without subdomain)

targetDomainName

The name of the domain (with or without subdomain) that should be udpated

timeToLive

Corresponds to the "ttl" of the dns record

  • 1m: Records can be cached for one minute
  • 1.5h: Records can be cached for 1 hour 30 minutes
  • ...
ipProvider

The preffered method of querying the current external IP address.

ionos-dyndns's People

Contributors

sellmair avatar

Stargazers

 avatar

Watchers

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