5ddf3557999e5f7d0519dc8e0adab4443ea8b4aa
Purpose
A system service for dynamic update DNS record by net6 with Quartz.Net. only Support DnsPod、[AlibabaCloud](阿里云 OpenAPI 开发者门户 (aliyun.com)).
Deploy
- Copy the folder
\bin\Debug\net6.0to a new path and open it . - Configure the
Appoption inappsetting.jsonfile. - In Windows system, configure the service name in
InstallServiceByNssm.batfile , and then double click the BAT file.
Building
Check and configure the App option in appsetting.json file, and then click the Hua.DDNS.sln file open the solution.
Configuration
Example of config in appsetting.json
{
"ConnectionStrings": {
"pgConnection": "Host=127.0.0.1;Port=5432;Database=Worker;Username=Worker;Password=123456;"//LogDbConnection
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"App": {
"AppJob": {
"Corn": "0/15 * * * * ? " //a corn expression which defined strike time and frequency.this is a util website for generate an corn expression https://cron.qqe2.com/
},
"Domain": {
"Platform": "Ali", //platform from 'Tencent' or 'Ali'
"Id": "Id",//get the id and key from https://dc.console.aliyun.com/ Or https://console.cloud.tencent.com/cam/capi
"Key": "Key",
"domain": "demo.cn",
"subDomainArray": [ "www", "@","git"],
"type": "A",//this is not using
"time": "30"//this is not using
}
}
Languages
C#
97.2%
Dockerfile
1.4%
Batchfile
1.2%
PowerShell
0.2%