ddns-daemon

command module
v0.0.0-...-d6b47ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 1 Imported by: 0

README

DDNS Daemon GitHub GitHub release (latest by date) Go Report Card

OVH DynHost self-hosted daemon. Multiple hosts supported!

How it works

It's fetching your IP address from ifconfig.co API then updating all your OVH DynHost hosts based on the configuration file.

Config

By default config.yml is expected to be in the same directory but you can customize it with --config-filepath param.

hosts:
    first_host:
        host: first.host.dynhost.ovh
        user: firstHostUsername
        pass: firstHostPassword
    second_host:
        host: second.host.dynhost.ovh
        user: secondHostUsername
        pass: secondHostPassword
    ...

Quick setup

Production
  1. Download latest executable
  2. Prepare yaml config file
  3. Configure the daemon (eg. service - sample config below) or run it manually (eg. screen)
Ubuntu (system.d service)
# /etc/systemd/system/ddns-daemon.service

[Unit]
Description=DDNS daemon

[Service]
ExecStart=/usr/local/bin/ddns-daemon daemon --config-filepath=/etc/ddns-daemon/config.yml
User=user
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
# reload daemon and check service status
systemctl daemon-reload
service ddns-daemon status
Development

Run it with or without Docker.

  1. Clone the repository
  2. Create .env file based on .env.dist
  3. Prepare yaml config file
  4. Build docker image and run Golang environment
  5. Contribute, build binary, run daemon

License

MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL