Skip to content

A simple CLI DDNS Client updater.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Mouradost/ddns_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DDNS Client

A simple DDNS client updater.

Supported DDNS Servers

How to use it

ddns_client ~/.config/ddns_client/config.yaml -t 600

Config sample

# Domain name
domain: YOUR_DOMAIN
# DDNS server token
token: xxxx-xxxx-xxxx-xxxx
# Request confirmation from the server
verbose: true
# Clear all ip records from the server
clear: true

Run ddns_client as a service

DDNS Client can run as a system service.

Linux

  • Download the latest release here
  • Copy the binary file to /usr/bin/ using the following command
sudo cp ./ddns_client /usr/bin/
  • Create a service descriptor file as shown
touch ddns_client.service
[Unit]
Description=DDNS Client updater.
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/ddns_client /home/[USERNAME]/.config/ddns_client/config.yaml
Restart=always
RestartSec=14400
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=%n

[Install]
WantedBy=multi-user.target
  • Copy the file to /etc/systemd/system/
sudo cp ddns_client.service /etc/systemd/system/
  • Reload systemctl deamon
sudo systemctl daemon-reload
  • Enable the service
sudo systemctl enable ddns_client.service
  • Start the service
sudo systemctl start ddns_client.service
  • Check service status
sudo systemctl status ddns_client.service
  • Check the service output
journalctl -u ddns_client.service

About

A simple CLI DDNS Client updater.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Languages