2020年6月22日 update:
由于proxy.golang.org等Go语言官网被墙,导致编译失败,因此改用第三方镜像
go env -w GOPROXY=https://goproxy.cn

通过DNS服务商API接口实现
Cloudflare (https://cloudflare.com)
Google Domains (https://domains.google)
DNSPod (https://www.dnspod.cn/)
HE.net (Hurricane Electric) (https://dns.he.net/)
AliDNS (https://help.aliyun.com/product/29697.html)
DuckDNS (https://www.duckdns.org)

客户端:

https://github.com/TimothyYe/godns

下载源码编译32位

set GOARCH=386 #设为x86
go env #检查是否成功 set GOARCH=386
go build

sshot-3.png

安装为 Windows service
After creating your config.json file:

Get the latest NSSM for create a windows service.

nssm install YOURSERVICENAME
You will have an interface to configure your service, it is very simple in the "Application" tab just indicate where your godns.exe file is. Optionally you can also define a description on the "Details" tab and define a log file on the "I/O" tab.
安装完成后启动服务
卸载服务:
nssm remove YOURSERVICENAME