DDNS icon indicating copy to clipboard operation
DDNS copied to clipboard

An implementation of DDNS with Python and Aliyun API 利用Python+阿里云云解析API实现DDNS

Results 20 DDNS issues
Sort by recently updated
recently updated
newest added

config.json 这个文件,如果我只有一级域名,是不是二级不用填写呢? 我的域名类似: jordan.online

{'type': 'A', 'ip': '182.151.231.225'} 失败!原因为 The DNS record does not exist in your account. 可参考:https://help.aliyun.com/document_detail/29774.html?spm=a2c4g.11186623.2.20.fDjexq#%E9%94%99%E8%AF%AF%E7%A0%81 或阿里云帮助文档

成功更新了阿里云的解析, 路由器设置转发端口 。 入站 出站开了权限, 但是还是不行这个。 内网IP地址 内网端口 外网端口 协议 操 192.168.0.102 10101 85 全部

Traceback (most recent call last): File "DDNS.py", line 3, in from Utils import Utils File "/home/DDNS/Utils.py", line 3, in import IpGetter File "/home/DDNS/IpGetter.py", line 2, in import urllib.request 请问这是怎么回事啊,是哪里没调好么

(DDNS) leva@sweb:~/DDNS$ python DDNS.py {'type': 'A', 'ip': '111.61.66.60'} 失败!原因为 The DNS record does not exist in your account. 可参考:https://help.aliyun.com/document_detail/29774.html?spm=a2c4g.11186623.2.20.fDjexq#%E9%94%99%E8%AF%AF%E7%A0%81 或阿里云帮助文档 出现以上问题如何解决,请作者给个解决方案,谢谢。

我有多个二级域名,我在config.json里添加类似这样的子域名"Second-level-domain": "movie,test,test1" 执行脚本会报错,我域名解析记录都有添加了解析记录了的。 ![image](https://user-images.githubusercontent.com/28956825/56019728-fb2b1580-5d37-11e9-9114-7b7e1ca88069.png) 如果我在config.json添加为以下格式: "Second-level-domain": "movie“, "Second-level-domain": “test”, "Second-level-domain": "test1“ 执行会报如下错误: ![image](https://user-images.githubusercontent.com/28956825/56019900-6bd23200-5d38-11e9-978f-b1de411ed5b6.png) 我只添加单个二级域名的情况下脚本可以正常执行,所以在拥有多个二级域名的情况下,应该怎样添加记录?谢谢!

enhancement

master上的代码只需要修改IpGetter.py。 在python2.7版本中urllib.request对象不存在,可通过urllib2.urlopen(url)替代原有python3的urllib.request.urlopen(url)。 修改: step1: 导包修改 `import sys import json if sys.version_info.major == 2: #python2 import urllib2 else: #python3 import urllib.request` Step2: 添加通用url访问方法 `def urlopen(url): if sys.version_info.major == 2: return urllib2.urlopen(url)...

这段代码在本机上跑没问题 win10 但是在nas上跑就报错 winserver2019 代码如下 https://pic.dark.moe/images/2019/03/26/a5405689e9b6aa092760d453665cc67c.png

bug

在mac上运行始终报错json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes, 后用工具校验config.json发现格式有问题,但不清楚为什么,可能是符号问题,重新用正确格式编辑json后就能用了,建议重新修改一下config.json并用工具校验