Git Product home page Git Product logo

scaleway-ddns's Introduction

scaleway-ddns

Build status Go report card Go version

Dynamic DNS service based on Scaleway DNS.

Setup

From binaries

Download the most suitable binary from the releases tab. Builds are available for Linux, macOS and Windows.

tar xf scaleway-ddns_X.X.X_linux_amd64.tar.gz
./scaleway-ddns_X.X.X_linux_amd64/scaleway-ddns

Using the docker image

docker run --rm -d  --name scaleway-ddns -v `pwd`:/config aerialls/scaleway-ddns:latest --config /config/scaleway-ddns.yml

Usage

./scaleway-ddns --config /etc/scaleway-ddns/scaleway-ddns.yml --dry-run --verbose

Parameters

  • --config - Specify the location of the configuration file (required)
  • --dry-run - Do not perform update actions (default false)
  • --verbose - Display debug messages (default false)
  • --help - Display the help message block

Configuration

scaleway:
  project_id: __PROJECT_ID__
  access_key: __ACCESS_KEY__
  secret_key: __SECRET_KEY__

domain:
  name: contoso.com
  record: public
  ttl: 60

interval: 300

ipv4:
  enabled: true
  url: https://api-ipv4.ip.sb/ip

ipv6:
  enabled: true
  url: https://api-ipv6.ip.sb/ip

telegram:
  enabled: true
  token: __TELEGRAM_TOKEN__
  chat_id: __TELEGRAM_CHAT_ID__

Note: IPv6 is disabled by default.

Telegram

It's possible to send a Telegram message (in markdown format) when the DNS record changes.

telegram:
  enabled: true
  token: __TELEGRAM_TOKEN__
  chat_id: __TELEGRAM_CHAT_ID__
  template: DNS record *{{ .RecordName }}.{{ .Domain }}* has been updated

The following variables can be used in the template message.

  • RecordName
  • RecordType
  • Domain
  • PreviousIP
  • NewIP

scaleway-ddns's People

Contributors

aerialls avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

soulkyu

scaleway-ddns's Issues

Unable to get public IP from endpoints

Hello,

When i start the process, it is enable to get the public IP from endpoint.
I tried to started it from my computer and from a Kubernetes cluster and got the same error.

If i perform the same with curl its working well :

image

I'm working under WSL subsystem.

Did you have any idea or any way to add more logs ?

Thanks you

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.