NewFuture / DDNS

:triangular_flag_on_post: 自动更新域名解析到本机IP(支持dnspod,阿里DNS,CloudFlare,华为云,DNSCOM...)
https://ddns.newfuture.cc/
MIT License
4.23k stars 650 forks source link

windows server 2012 #233

Closed wp-chen closed 3 years ago

wp-chen commented 3 years ago

配置

{
  "$schema": "https://ddns.newfuture.cc/schema/v2.8.json",
  "debug": true,
  "dns": "dnspod",
  "id": "***",
  "index4": "public",
  "index6": "public",
  "ipv4": [
    "www.creedcode.cn"
  ],
  "ipv6": [
  ],
  "token": "****",
  "ttl": 600
}

另一台主机 C:\Users\creed>ping www.creedcode.cn

正在 Ping www.creedcode.cn [116.11.195.94] 具有 32 字节的数据: 来自 116.11.195.94 的回复: 字节=32 时间=27ms TTL=56 来自 116.11.195.94 的回复: 字节=32 时间=29ms TTL=56 来自 116.11.195.94 的回复: 字节=32 时间=28ms TTL=56 来自 116.11.195.94 的回复: 字节=32 时间=27ms TTL=56

116.11.195.94 的 Ping 统计信息: 数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失), 往返行程的估计时间(以毫秒为单位): 最短 = 27ms,最长 = 29ms,平均 = 27ms 报错:

PS C:\Users\Administrator\Desktop\ddns> .\ddns.exe -c .\config.json
DDNS[ v2.9.8@2021-02-22T01:51:43+00:00 ] run: nt win32
Configuration was loaded from <== C:\Users\Administrator\Desktop\ddns\config.json
========================= Thu Feb 18 07:34:10 2021 =========================
2021-02-18 07:34:10,431 <cache.load> 48@util\cache.py
[DEBUG] load cache data from C:\Users\ADMINI~1\AppData\Local\Temp\ddns.cache
2021-02-18 07:34:10,437 <ip._open> 51@util\ip.py
[DEBUG] open: https://pv.sohu.com/cityjson?ie=utf-8
2021-02-18 07:34:10,692 <ip._open> 55@util\ip.py
[DEBUG] response: var returnCitySN = {"cip": "116.11.195.94", "cid": "450900", "cname": "广西壮族自治区"};

www.creedcode.cn(A) ==> 116.11.195.94 [via DIRECT]
2021-02-18 07:34:10,710 <dnspod.update_record> 151@dns\dnspod.py
[INFO] >>>>>www.creedcode.cn(A)
2021-02-18 07:34:10,715 <dnspod.request> 47@dns\dnspod.py
[INFO] dnsapi.cn/Domain.Info : {'domain': 'creedcode.cn', 'login_token': '***', 'format': 'json'}
2021-02-18 07:34:10,885 <dnspod.request> 47@dns\dnspod.py
[INFO] dnsapi.cn/Domain.Info : {'domain': 'www.creedcode.cn', 'login_token': '***', 'format': 'json'}
2021-02-18 07:34:11,047 <dnspod.get_domain_info> 91@dns\dnspod.py
[INFO] domain_id: None, sub: None
2021-02-18 07:34:11,052 <run.change_dns_record> 126@run.py
[ERROR] invalid domain: [ www.creedcode.cn ]
PS C:\Users\Administrator\Desktop\ddns>

之前用得好好的,服务器重启后就出现以上问题了。

NewFuture commented 3 years ago

这个Error好像是在你的DNSPOD账户下没有查询到creedcode.cn这个域名

wp-chen commented 3 years ago

现在又好了