Skip to content

GakkiiSmile/openwrt-cloudflare-ddns-by-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1.根据一个根据路由器的架构,构建一个可执行文件

GOOS 构建的系统 GOARCH 架构 GOARM arm 版本

GOOS=linux GOARCH=arm GOARM=5 go build -ldflags "-s -w"

2.配置文件config.json放在运行的目录下即可

authEmail authKey 字段在 https://dash.cloudflare.com/profile/api-tokens

domainName 字段为在 cloudflare 下的二级域名

ddns 下的 isCurrent 为 true,指用当前主机 DDNS; 为 false 则在网络邻居中查找 mac地址对应的ipv6 DDNS

{
  "authEmail": "",
  "authKey": "",
  "domainName": "pjunjie.cc",
  "ddns": [
    {
      "host": "router.pjunjie.cc",
      "isCurrent": true,
      "mac": null
    },
    {
      "host": "test.pjunjie.cc",
      "isCurrent": false,
      "mac": "dd:ee:ff:aa:bb:cc"
    }
  ]
}

About

openwrt下的Cloudflare DDNS脚本

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published