# aliddns **Repository Path**: wbotx/aliddns ## Basic Information - **Project Name**: aliddns - **Description**: No description available - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-01-04 - **Last Updated**: 2021-05-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 阿里云域名动态解析 ## 前提 - 拥有阿里云域名 - 拥有动态外网IP地址 - 阿里云创建RAM用户访问控制权限,要达到在[Ram访问控制/授权]中看到以下4栏内容,否则可能出现更新错误的问题 |RAM角色 | AliyunDNSFullAccess |系统策略 | 管理云解析(DNS)的权限| | ----- | ---- |---- | ---- | | RAM角色 |AliyunDomainFullAccess |系统策略 |管理域名服务的权限| | 用户 | AliyunDNSFullAccess |系统策略 | 管理云解析(DNS)的权限| | 用户 | AliyunDomainFullAccess |系统策略 | 管理域名服务的权限| ## 编译环境配置 - 下载golang1.13以后版本,配置golang开发环境,在工程根目录执行go get - 配置编译目标的运行环境 - windows编译环境: - linux环境:
Set GOOS=linux - windows环境:
Set GOOS=windows - CPU指令集:
arm: Set GOARCH=arm
x86-64: Set GOARCH=amd64 - linux编译环境: - linux环境:
export GOOS=linux - windows环境:
export GOOS=windows - CPU指令集:
arm: export GOARCH=arm
arm64: export GOARCH=arm64
x86-64: export GOARCH=amd64 - 最后执行go build即可 ## 配置文件 把config目录下的config.sample.json文件改名config.json,并在里面添加相应的字段,具体内容不做解释 ## 运行 手动运行: ./aliddns-x86-64 config/config.sample.json sudo crontab -e 写入以下内容,意思是每5分钟运行一次程序,并把结果写入到同级目录下的log.log中
*/5 * * * * /project-absolute-path/run.sh ## FAQ 有问题,请联系:
邮箱:8980728@qq.com
微信:
![](./wechat.png)