Duck DNS Updater
A Windows worker service to update IP adressses of subdomains on Duck DNS.
The IP address is detected automatically by Duck DNS.
Installation
- Grab the latest version from the Releases page.
- Extract the DuckDnsUpdater.exe into its own new directory.
- Configure the settings for your subdomains and token.
- Run DuckDnsUpdater.exe or create a Windows service.
Configuration
Create a file named appsettings.Production.json
in the same directory where DuckDnsUpdater.exe is located.
Find your Duck DNS token on your Duck DNS profile page.
Append one of the following examples and replace the provided values with your settings:
Single Subdomain
If you only have one subdomain, the settings would look like this:
{
"Subdomains": ["subdomain"],
"Token": "example"
}
Multiple Subdomains
Multiple subdomains are supported:
{
"Subdomains": ["subdomain1", "subdomain2"],
"Token": "example"
}
Create a Windows Service
A Windows service starts the app automatically when the computer boots up.
- Open a command prompt as administrator.
- Run
sc create DuckDnsUpdater binpath= "C:\path\to\DuckDnsUpdater.exe" start= auto
. Replace binpath argument with the location of DuckDnsUpdater.exe. Note: a space is required between the argument's equal sign and the value. - Run
sc start DuckDnsUpdater
To delete the service use: sc delete DuckDnsUpdater
Developer Notes
Build a Release
Run dotnet publish -c Release --self-contained true