A Windows worker service to update IP adressses of subdomains on Duck DNS.
The IP address is detected automatically by Duck DNS.
- 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.
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:
If you only have one subdomain, the settings would look like this:
{
"Subdomains": ["subdomain"],
"Token": "example"
}Multiple subdomains are supported:
{
"Subdomains": ["subdomain1", "subdomain2"],
"Token": "example"
}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
Run dotnet publish -c Release --self-contained true