loong-chen-88 / Aliddns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

阿里云动态域名解析

  • 帮助文档

  • 环境要求: python >= 3.9

  • 克隆源文件

    git clone https://github.com/L00N9CHEN/Aliddns.git
  • 第三方库: PyYAML, alibabacloud_alidns20150109, requests

    # 进入Aliddns目录,创建虚拟隔离环境
    python3 -m venv env
    # 激活虚拟隔离环境
    source env/bin/activate
    # 在虚拟隔离环境下安装第三方库
    pip install -r requirements.txt
  • 配置文件路径: Aliddns/config/config.yaml, 首次运行会通过示例模板创建,修改相应参数后再运行.

    RegionEndpoint: "alidns.cn-shenzhen.aliyuncs.com"
    AccessKeyID: "Your Access Key ID"
    AccessSecret: "Your Access Key Secret"
    DomainName: "example.com"
    RecordKeyword: "test"
    RecordType: "A"
  • 日志记录按天轮转日志文件并保留最近90天的日志, 文件路径: Aliddns/logs/

  • 运行

    python main.py
  • 创建任务计划

About


Languages

Language:Python 100.0%