本站点使用基于 JavaScript 的 CSS 异步加载改善用户浏览体验,若您发现页面显示异常,请允许 JavaScript 运行
[草稿]Godns Ddns
negoces ・ 2023-02-28 undefined

Summary

1
curl -fLO https://ghproxy.com/https://github.com/TimothyYe/godns/releases/download/v2.9.2-1/godns_2.9.2-1_Linux_x86_64.tar.gz
1
tar -xzvf godns_2.9.2-1_Linux_x86_64.tar.gz godns
1
2
sudo mkdir -p /opt/godns
sudo mv godns /opt/godns
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
debug_info: true
provider: AliDNS
email: "access_id"
password: "access_key"
domains:
  - domain_name: example.top
    sub_domains:
      - ddns
resolver: "2402:4e00::"
ip_urls: []
ip_interface: "ppp-telecom"
ip_type: IPv6
interval: 300
notify:
  slack:
    enabled: true
    bot_api_token: xoxb-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    channel: "ddns"
    message_template: "IP changed:\n{{ .Domain }}\t{{ .CurrentIP }}"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# /etc/systemd/system/godns.service

[Unit]
Description=GoDNS Service
After=network.target

[Service]
ExecStart=/opt/godns/godns -c /opt/godns/config.yaml
Restart=always
KillMode=process
RestartSec=10s

[Install]
WantedBy=multi-user.target
1
sudo systemctl enable --now godns
本文作者
negoces
发布时间
2023-02-20
许可协议
转载或引用本文时请遵守许可协议,注明出处、不得用于商业用途!