ddns

command module
v0.0.0-...-eb0ade7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ddns

编译状态 Golang质量 版本 Docker镜像版本 仓库大小 Docker镜像大小 最后提交 授权协议 语言个数 最佳语言 星星个数

动态域名解析,特点如下:

  • 原生Docker支持
  • 极低的内存占用,大概20M左右的内存占用
  • 极低的CPU消耗,实测几十个域名解析也消耗不到0.1%的性能
  • 多域名厂商支持
    • 阿里云
    • 腾讯云
  • 配置文件监控
  • 多域名支持

如何使用

直接使用命令行执行

TAG="ccr.ccs.tencentyun.com/storezhang/ddns" && NAME="Ddns" && sudo docker pull ${TAG} && sudo docker stop ${NAME} ; sudo docker rm --force --volumes ${NAME} ; sudo docker run \
  \
  \
  \
  --volume=/主机目录:/config \
  --volume=/etc/localtime:/etc/localtime \
  \
  \
  \
  --env=UID=$(id -u 用户名) \
  --env=GID=$(id -g 用户名) \
  \
  \
  \
  --restart=always \
  --detach=true \
  --name=${NAME} \
  ${TAG} \
  \
  \
  \
&& sudo docker logs -f ${NAME}

配置

默认的配置文件如下

secrets:
  - ak: ${ALIYUN_AK}
    sk: ${ALIYUN_SK}
    # 目前只支持阿里云
    type: aliyun
    # 任意字符,如果有多个,后续和解析绑定
    # 可以不配置,有默认值,那样所有解析都使用本授权
    label: test-label

resolves:
  - name: ruijc.com
    # 绑定授权,可以不配置
    label: test-label
    types:
      - CNAME
    value: storezhang.ruijc.com
    subdomains:
      - test
  - name: ruijc.com
    types:
      - A
    subdomains:
      - test

配置文件可以使用${ENV}来加载环境变量

感谢Jetbrains

本项目通过Jetbrains开源许可IDE编写源代码,特此感谢 Jetbrains图标

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址