GithubHelp home page GithubHelp logo

mqhe2007 / aliyunddns Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 17 KB

aliyunddns 一个使用Go开发的aliyun ddns(阿里云DDNS)工具

Home Page: https://github.com/mqhe2007/aliyunddns

Go 100.00%
go-ddns aliyun-ddns

aliyunddns's Introduction

aliyunddns 基于 Go 的阿里云 DDNS 工具

任何问题,请在 issues 反馈。

概述

使用 aliyunddns 工具,可以定时更新(cron)您在阿里云的域名解析服务。

命令行参数

-h

查看帮助

-c

默认值:./aliyunddns-config.json

指定配置文件。

-l

默认值:./aliyunddns-out.log

指定日志输出文件。

教程

1. 下载

release 页面下载对应平台的可执行程序。

2. 创建配置文件

创建配置文件,一个满足Config结构体的.json文件,如果不通过命令行参数指定配置文件,请在程序目录创建名为aliyunddns-config.json的文件。

type Config struct {
  // 区域ID,因本工具不涉及ECS等实体产品操作,此字段对运行无影响,统一设置为"cn-hangzhou"即可
  // 详细说明参见:https://help.aliyun.com/document_detail/40654.html
  RegionID     string
  // 支持子域名,当值为主域名时,默认添加主机记录"@"
  Domain       string
  // 如何获取AccessKeyID和AccessSecret请参见:https://ram.console.aliyun.com/users/new
  AccessKeyID  string
  AccessSecret string
  // CRON表达式格式参见:https://pkg.go.dev/github.com/robfig/cron
  Cron         string
}

3. 后台运行

aliyunddns's People

Contributors

mqhe2007 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dejin

aliyunddns's Issues

咨询duration参数设定

Hi Qingjin:

您好,我想咨询一下duration参数的用法,因为我没有任何go语言基础,所以看不明白这个参数,我猜这个参数是设定更新ddns的时间间隔,默认的12是12小时更新一次,如果我想加快其更新,设置"duration": 0.1 是不是可以0.1小时就更新一次?如果不是,想设置10分钟更新一次,该如何设置啊?非常感谢!

BR,
Dejin

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.