ddns4/readme.md

30 lines
722 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# DDNS4
---
一、概述
把当前主机的IPV4向阿里DNS进行注册实现IPV4 DDNS功能。当二级域名没有创建时会自动创建解释使用A类型每10秒检测一次当前主机的IPV4地址如果发生变化则自动更新到阿里DNS。如果存在多个IPV4地址则只更新第一个IPV4地址。
二、组件
github.com/aliyun/alibaba-cloud-sdk-go v1.62.676
三、配置
1. 阿里云配置RAM访问控制权限如下:
AliyunDNSFullAccess
AliyunHTTPDNSFullAccess
2. 环境变量
DOMAIN 域名
RR 二级域名
REGIONID 地域默认cn-hangzhou
ACCESSKEYID 访问key
ACCESSSECRET 访问私钥
四、 调试