Info
Version: | 1.0.0.2 |
Author(s): | symbolspace |
Last Update: | Thursday, February 6, 2020 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/symbolspace/AliyunDDNS/ |
NuGet Url: | https://www.nuget.org/packages/module.AliyunDDNS |
Install
Install-Package module.AliyunDDNS
dotnet add package module.AliyunDDNS
paket add module.AliyunDDNS
module.AliyunDDNS Download (Unzip the "nupkg" after downloading)
Dependencies
.NETFramework 4.5
- Symbol(>= 4.0.0.13)
- Symbol.Net(>= 4.0.0.5)
- aliyun-net-sdk-alidns(>= 2.0.15)
- aliyun-net-sdk-core(>= 1.5.3)
- Symbol(>= 4.0.0.13)
- Symbol.Net(>= 4.0.0.5)
- aliyun-net-sdk-alidns(>= 2.0.15)
- aliyun-net-sdk-core(>= 1.5.3)
- Symbol(>= 4.0.0.13)
- Symbol.Net(>= 4.0.0.5)
- aliyun-net-sdk-alidns(>= 2.0.15)
- aliyun-net-sdk-core(>= 1.5.3)
- Symbol(>= 4.0.0.13)
- Symbol.Net(>= 4.0.0.5)
- aliyun-net-sdk-alidns(>= 2.0.15)
- aliyun-net-sdk-core(>= 1.5.3)
- Symbol(>= 4.0.0.13)
- Symbol.Net(>= 4.0.0.5)
- aliyun-net-sdk-alidns(>= 2.0.15)
- aliyun-net-sdk-core(>= 1.5.3)
- Symbol(>= 4.0.0.13)
- Symbol.Net(>= 4.0.0.5)
- aliyun-net-sdk-alidns(>= 2.0.15)
- aliyun-net-sdk-core(>= 1.5.3)
- Symbol(>= 4.0.0.13)
- Symbol.Net(>= 4.0.0.5)
- aliyun-net-sdk-alidns(>= 2.0.15)
- aliyun-net-sdk-core(>= 1.5.3)
Tags
# aliyun dynamic dns config file
* ~/aliyun.ddns.config.json
* docker: ~/ -> /app/
```
{
"interval": 10, //seconds
"showIPUrl": "https://url.anycore.cn/ip", //out my ip address text
"accessKeys": { //accessKey map
"default": {
"accessKeyId": "your accessKey ID",
"accessKeySecret": "your accessKey Secret"
}
},
"domains": { // domain map
"mydomain.com": {
"provider": "aliyun", //dns provider
"accessKey": "default", //refence accessKey map
"items": [
{
"type": "A",
"name": "home",
"ttl": 100
}
]
}
}
}
```
# module usage
```
// create ddns instance
// default config : ~/aliyun.ddns.config.json
var ddns = new module.AliyunDDNS.DomainIPSyncService();
// set log
ddns.Log = new ConsoleLog("AliyunDDNS");
// start task
ddns.Start();
System.Console.ReadLine();
```.