gandi-ddns:Gandi LiveDNS的Python动态DNS脚本

时间:2021-05-27 04:46:55
【文件属性】:
文件名称:gandi-ddns:Gandi LiveDNS的Python动态DNS脚本
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-27 04:46:55
Python 使用gandi.net LiveDNS API动态更新域的DNS A记录的Python脚本: 该脚本是为动态IP接口(例如家庭服务器/ pi / nas)背后的人员开发的。 config-template.txt文件应重命名为config.txt,并使用gandi.net API密钥,域名和A记录(@,dev,home,pi等)进行修改。 每次脚本运行时,它将查询外部服务以检索计算机的外部IP,将其与gandi.net区域中的当前A记录进行比较,如果IP已更改,则更新记录。 要求: 点安装-r requirements.txt 然后,您可以将脚本作为cron作业运行: */15 * * * * python /home/user/gandi_ddns.py 但是,为了使API服务器更好用,您应该为您的工作选择一个随机偏移量。 例如,在小时后的2分钟运行,然后每15分钟运行一
【文件预览】:
gandi-ddns-master
----requirements.txt(31B)
----.travis.yml(194B)
----LICENSE(1KB)
----README.md(1KB)
----test_gandi_ddns.py(167B)
----gandi.ddns.plist(765B)
----.gitignore(11B)
----config-template.txt(469B)
----gandi_ddns.py(4KB)

网友评论