Git Product home page Git Product logo

aliyunddnscsharp's Introduction

AliyunDdnsCSharp

介绍

基于阿里云最新云解析API编写的DDNS Windows Services 程序,可将本机公网IP实时更新到自己阿里云的域名解析记录中

特点

  1. 支持IPV4
  2. 支持IPV6

依赖

  1. .Net Framework >=4.0 (win7 即以下安装失败时请尝试安装.net 4.0 KB2468871这个补丁 下载链接 https://www.microsoft.com/zh-CN/download/details.aspx?id=3556)

使用说明

  1. 阿里云申请一个域名
  2. 阿里云域名控制台申请AccessId Key和Secrect
  3. 安装:(下面两种方式任选一)
    • git clone 本项目代码到本机用vs(2013及以上版本)编译,将生成的AliyunDdnsCSharp.exe程序及相关依赖文件放在任意目录,在CMD中执行AliyunDdnsCSharp.exe -i(AliyunDdnsCSharp.exe /i)即可安装为服务,
    • 直接到Release下载压缩包AliyunDdnsCSharp.zip直接使用解压到任意目录,双击Install.bat即可
  4. 在程序所在目录下conf下放置配置文件(参照example.foo.com.conf配置)
  5. 重启电脑(或手动启动AliyunDdns服务)

配置说明

  1. 配置示例 :example.foo.com.conf
{
     "Interval": "刷新间隔,单位分钟",
     "AccessKeyId": "阿里云AccessKeyId See https://help.aliyun.com/knowledge_detail/38738.html?spm=5176.11065259.1996646101.searchclickresult.73c9490e2I0S3U",
     "AccessKeySecret": "阿里云AccessKeySecret",
     "DomainName": "阿里云域名 如 google.com",
     "SubDomainName": "阿里云子域名 如 test",
     "Type": "A/AAAA,目前仅支持 A(IPV4)、AAAA(IpV6),默认:A",
     "Line":"解析线路,默认为default。参见解析线路枚举 https://help.aliyun.com/document_detail/29807.html?spm=a2c4g.11186623.2.22.41dd2846rHiL1v",
     "TTL":"600,生存时间,默认为600秒(10分钟),参见TTL定义说明 https://help.aliyun.com/document_detail/29806.html?spm=a2c4g.11186623.2.18.7cde1cebY1cQtc",
     "GetIpUrls": [
       "获取外网Ip的地址",
       "支持多个配置",
       "IPV4不填写默认从 http://ip.hiyun.me获取IPV6地址",
       "IPV6不填写默认从IFCONFIG获取IPV6地址"
      ]
}
  1. 支持多个配置文件,每个配置文件单独配置一条记录

支持获取IPV4地址的网址列表:

  1. http://ip.hiyun.me (自己搭建的 )
  2. https://ip.cn
  3. http://www.ip138.com
  4. http://ip.zxinc.org/getip
  5. http://v4.ipv6-test.com/api/myip.php
  6. http://ipv4.icanhazip.com

支持获取IPV6地址的网址列表: (感谢 wowplayer 提供)

  1. http://v4v6.ipv6-test.com/api/myip.php (V4 & V6)
  2. http://v6.ip.zxinc.org/getip
  3. http://v6.ipv6-test.com/api/myip.php
  4. http://ipv6.icanhazip.com

aliyunddnscsharp's People

Contributors

macyrate avatar xuchao1213 avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.