Giter Club home page Giter Club logo

aliyun-ddns-client's Introduction

aliyun-ddns-client

       go语言编写的阿里云的DDNS客户端,解决没有静态公网IP的痛点。
       喜欢折腾的那些谁看到这里就应该知道这个项目的功能了。

说明

       参数类信息详见阿里云云解析官网
       解析生效时间和TTL时间有关,免费的DNS的TTL为10分钟,也就是说这个DDNS的时效性可能并不高,
但是对于个人来说已经足够完美,嫌弃的同学,可以购买aliyun相关的服务来解决这个问题。
       一般来说,最差的生效时间为下面设置检测时间加上TTL的10分钟,默认就是15分钟。

使用指南

需要【./ddns.conf】 》》》》使用ini配置格式

[Must]
AccessKeyId=testAccessKeyId
AccessKeySecret=testAccessKeySecret
DomainName=niubi.com

[Optional]
CycleTime=300 #时间单位是秒

上面是推荐配置,当然,你可以根据【[https://help.aliyun.com/product/29697.html]】 官方指南的参数配置来设置参数,在[Optional]下面。

linux/mac启动:
./aliyun-ddns-client -ls -start 2>>/var/log/ddns.log &
可以将日志输出到/var/log/ddns.log中

关于aliyun-ddns-client 二进制文件的使用:

-h -help --h --help 都是显示帮助信息
-start 开启ddns的功能
-ls 显示配置中域名现有的解析记录

关于交叉编译

编译成Linux下可执行文件
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build

编译成Windows下可执行文件
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build

编译成macOS下可执行文件
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build

详见【[https://javasgl.github.io/go-cross-complie/]】

BIG PS

使用中如果有问题,邮件:[email protected]
好用的话,你应该知道点击哪里,啊哈哈

aliyun-ddns-client's People

Contributors

jaredtan95 avatar

Watchers

 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.