Chinese | English
Automatically get your public network IPv4 or IPv6 address, and analyze it to the corresponding domain name service.
阿里云
腾讯云
Cloudflare
Dnspod
华为云
Callback
百度云
Porkbun
GoDaddy
Namecheap
NameSilo
Dynadot
禁止从公网访问
Note
It is recommended to use the reverse proxy software such as Nginx to enable HTTPS access to ensure security when using the public network access to ensure security. FAQ
Download and decompress the DDNS-GO from Reases
Installation service
sudo ./ddns-go -s install
.ddns-go.exe -s install
[Optional] Service Uninstallation
sudo ./ddns-go -s uninstall
.ddns-go.exe -s uninstall
[Optional] Support the installation tape parameter
-l
monitoring address-f
synchronous interval time (second)-cacheTimes
interval n times to compare with service providers-c
custom configuration file path-noweb
does not start the web service-skipVerify
-dns
custom DNS server-resetPassword
reset password[Optional] Reference Example
./ddns-go -s install -f 600 -c /Users/name/.ddns_go_config.yaml
./ddns-go -s install -f 10 -cacheTimes 180
./ddns-go -resetPassword 123456
./ddns-go -resetPassword 123456 -c /Users/name/.ddns_go_config.yaml
[Optional] Install DDNS-GO with Homebrew:
brew install ddns-go
Mount the host directory and use the docker host mode. You can replace /opt/ddns-go
to any directory of your host, and the configuration file is a hidden file
docker run -d --name ddns-go --restart=always --net=host -v /opt/ddns-go:/root jeessy/ddns-go
Open http://主机IP:9876
in the browser, and modify your configuration
[Optional] Use ghcr.io
mirror image
docker run -d --name ddns-go --restart=always --net=host -v /opt/ddns-go:/root ghcr.io/jeessy2/ddns-go
[Optional] Support the starting band parameter -l
monitoring address -f
interval time (second)
docker run -d --name ddns-go --restart=always --net=host -v /opt/ddns-go:/root jeessy/ddns-go -l :9877 -f 600
[Optional] Do not use the docker host mode
docker run -d --name ddns-go --restart=always -p 9876:9876 -v /opt/ddns-go:/root jeessy/ddns-go
[Optional] reset password
docker exec ddns-go ./ddns-go -resetPassword 123456
docker restart ddns-go
--net=host
ddns-go
in the registry and download and downloadjeessy/ddns-go
>启动自动重新启动
> Advanced Settings-> Select使用与Docker Host 相同的网络
in the network.http://群晖IP:9876
in the browser, modify your configuration, success--net=host
mode. Refer to docker useSupport webhook, when the domain name is updated or unsuccessful, the URL that will be recovered will be recovered
Support variable
Variable name | illustrate |
---|---|
#{ipv4addr} | New IPv4 address |
#{ipv4result} | IPv4 address update result:未改变 失败 成功 |
#{ipv4Domains} | The domain name of IPv4, multiple , divide |
#{ipv6addr} | New IPv6 address |
#{ipv6result} | IPv6 address update result:未改变 失败 成功 |
#{IPv6Domains} | The domain name of IPv6, multiple , divide |
If requestbody is empty, it is a GET request, otherwise the post request
https://sctapi.ftqq.com/[SendKey].send?title=你的公网IP变了&desp=主人IPv4变了#{ipv4Addr},域名更新结果:#{ipv4Result}
https://api.day.app/[YOUR_KEY]/主人IPv4变了#{ipv4Addr},域名更新结果:#{ipv4Result}
自定义关键词
, the input keywords must be included in the content of Requestbody, such as:你的公网IP变了
Webhook地址
to your nail in the url{
"msgtype" : " markdown " ,
"markdown" : {
"title" : "你的公网IP变了" ,
"text" : " #### 你的公网IP变了 n - IPv4地址:#{ipv4Addr} n - 域名更新结果:#{ipv4Result} n "
}
}
自定义关键词
. The input keywords must be included in the content of RequestBody, such as:你的公网IP变了
Webhook地址
for you in the URL{
"msg_type" : " post " ,
"content" : {
"post" : {
"zh_cn" : {
"title" : "你的公网IP变了" ,
"content" : [
[
{
"tag" : " text " ,
"text" : " IPv4地址:#{ipv4Addr} "
}
],
[
{
"tag" : " text " ,
"text" : "域名更新结果:#{ipv4Result} "
}
]
]
}
}
}
}
DDNS-Telegram-Bot
https://www.pushplus.plus/send
in url{
"token" : " your token " ,
"title" : "你的公网IP变了" ,
"content" : "你的公网IP变了 n - IPv4地址:#{ipv4Addr} n - 域名更新结果:#{ipv4Result} n "
}
Webhook网址
{
"content" : "域名 #{ipv4Domains} 动态解析 #{ipv4Result}. " ,
"embeds" : [
{
"description" : " #{ipv4Domains} 的动态解析 #{ipv4Result}, IP: #{ipv4Addr} " ,
"color" : 15258703 ,
"author" : {
"name" : " DDNS "
},
"footer" : {
"text" : " DDNS #{ipv4Result} "
}
}
]
}
View more webhook configuration reference
By customized callback, more third -party DNS service providers can be supported
There are a few lines of the domain name of the configuration, and you will call it a few times
Support variable
Variable name | illustrate |
---|---|
#{ip} | The new IPv4/IPv6 address |
#{domain} | Current domain name |
#{RecordType} | Record type A or AAAA |
#{ttl} | TTL |
If requestbody is empty, it is a GET request, otherwise the post request
Callback configuration reference
make build
to generate a local compiled ddns-go
executable filemake build_docker_image
to compile Docker mirror by yourself