GithubHelp home page GithubHelp logo

zhu260824 / aliyun-ddns Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sanjusss/aliyun-ddns

0.0 1.0 0.0 28 KB

阿里云动态域名工具,支持docker和ipv6。

License: BSD 3-Clause "New" or "Revised" License

Dockerfile 3.53% C# 87.28% PowerShell 9.19%

aliyun-ddns's Introduction

Build status GitHub license
GitHub tag GitHub issues GitHub forks GitHub stars

使用方法

Docker

docker run -d --restart=always --net=host \
    -e "AKID=[ALIYUN's AccessKey-ID]" \
    -e "AKSCT=[ALIYUN's AccessKey-Secret]" \
    -e "DOMAIN=ddns.aliyun.win" \
    -e "ENDPOINT=cn-hangzhou" \
    -e "REDO=30" \
    -e "TTL=60" \
    -e "TIMEZONE=8.0" \
    -e "TYPE=A,AAAA" \
    sanjusss/aliyun-ddns

如果要支持IPv6,必须使用--net=host模式,否则无法设置宿主机的ipv6地址到AAAA记录。
AKID:阿里云的Access Key ID。
AKSCT:阿里云的Access Key Secret。
DOMAIN:需要更新的域名,多个域名需要“,”分隔。
ENDPOINT:默认为cn-hangzhou,详见定义
REDO: 更新间隔,单位秒。建议大于等于TTL/2。
TTL: 服务器缓存解析记录的时长,单位秒,普通用户最小为600。
TIMEZONE: 输出日志时的时区,单位小时。
TYPE: 需要更改的记录类型,可以用“,”隔开,只能是“A”、“AAAA”或“A,AAAA”。

命令行

查看帮助信息
dotnet aliyun-ddns.dll --help
查看版本信息
dotnet aliyun-ddns.dll --version
运行
dotnet aliyun-ddns.dll \
    -u "ALIYUN's AccessKey-ID" \
    -p "ALIYUN's AccessKey-Secret" \
    -d "ddns.aliyun.win,ddns2.aliyun2.win" \
    -e "cn-hangzhou" \
    -i 300 \
    -t 600 \
    --timezone 8.0 \
    --type A

u:阿里云的Access Key ID。
p:阿里云的Access Key Secret。
d:需要更新的域名,多个域名需要“,”分隔。 e:默认为cn-hangzhou,详见定义
i: 更新间隔,单位秒。建议大于等于TTL/2。
t: 服务器缓存解析记录的时长,单位秒,普通用户最小为600。
tz: 输出日志时的时区,单位小时。
type: 需要更改的记录类型,可以用“,”隔开,只能是“A”、“AAAA”或“A,AAAA”。

aliyun-ddns's People

Contributors

sanjusss 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.