VirtualDDNSRouter Client
The VirtualDDNSRouter Client is a lightweight application that periodically updates the IP address of a service with the VirtualDDNSRouter Server.
Configuration
The client uses a YAML configuration file named settings.yaml
. You can create this file by copying and modifying the provided example:
cp settings.example.yaml settings.yaml
The configuration file has the following structure:
host: example.com # The hostname of the VDR server
path: odoo # The path identifier for your service
destination_port: 8081 # The port of your service
api_key: abc123XYZ # The API key for authentication
refresh_interval_minutes: 3 # How often to update the IP address (in minutes)
Running the Client
Method 1: Downloading Pre-built Binaries (Recommended)
- Download the latest client binary from https://git.mahdium.ir/mahdium/VDR/releases/latest
- Extract the archive
- Create your
settings.yaml
file based onsettings.example.yaml
- Run the client:
./VirtualDDNSRouter.Client
Method 2: Using Docker
docker run -v ./settings.yaml:/app/settings.yaml virtualddnsrouter.client
Method 3: Building from Source
dotnet build
dotnet run
Usage
After starting the client, it will:
- Read the configuration from
settings.yaml
- Send an update to the server every
refresh_interval_minutes
- Continue running until stopped with Ctrl+C
The client will output logs showing when updates are sent and whether they were successful.