Git Product home page Git Product logo

aliyun-ddns-client-csharp's Introduction

aliyun-ddns-client-csharp

基于阿里云解析服务API的DDNS客户端。将本机IP更新至指定域名的DNS A记录,配合定时任务可以达到花生壳的效果。

使用方法

  1. 在阿里云申请一个域名,将此域名添加一个子域(如www),并设置为A类型记录,IP地址随便填写一个(程序会自动修改)
  2. 到阿里云域名控制台申请AccessId Key和Secrect
  3. Clone本项目代码到本机,使用VS2013或更高版本编译
  4. 将程序exe和其他dll文件复制到服务器上。在exe文件同目录下创建一个文本文件并命名为config.txt
  5. config.txt文件的内容有四行,请修改成对应的值:
  • 第一行:Access Id Key,例如 DR2DPjKmg4ww0e79
  • 第二行:Access Id Secret,例如 ysHnd1dhWvoOmbdWKx04evlVEdXEW7
  • 第三行:域名,例如 google.com
  • 第四行:子域名,例如 www
  1. 在服务器上运行主exe即可

获取公网IP的服务

本程序依赖外部web服务来获取本机的公网IP地址,默认使用的公网IP地址查询服务来自ip138.com。您可以在App.config文件中修改对应的网址。

环境

使用VS2013 + C#开发,支持.NET 3.5和.NET 4.5

建议

建议通过任务计划定时调用(如每小时),程序会判断是否需要修改A记录

aliyun-ddns-client-csharp's People

Contributors

kaedei avatar

Watchers

 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.