HostDDNS Daemon
HostDDN daemon to send Public IP information every 1 minute.
Building
- Install Rust
- Create a
.env
file - Put
UPDATE_URL
to.env
file
UPDATE_URL=https://tunnel.hostddns.us/ddns/examplehostddnsupdateurl
- Run
cargo run
Cross compiling MUSL
- Install cross
- Run
cross build --target x86_64-unknown-linux-musl --release
Systemd
- Create file in
/etc/systemd/system/hostddns-daemon.service
. Example service file (might want to change ExecStart & WorkiingDirectory)
[Unit]
Description=HostDDNS Daemon Service
After=network.target
[Service]
Type=Simple
ExecStart=/root/hostddns-daemon/hostddns-daemon
WorkingDirectory=/root/hostddns-daemon
User=root
[Install]
WantedBy=multi-user.target
- Run service
sudo systemctl start hostddns-daemon
- Enable service
sudo systemctl enable hostddns-daemon