Skip to content

Instantly share code, notes, and snippets.

@johncanlam
johncanlam / gist:5720846
Last active December 18, 2015 03:49
func热更新模块
class XmlRpcInterface(object):
def __init__(self):
"""
Constructor.
"""
cm_config_file = '/etc/certmaster/minion.conf'
self.cm_config = read_config(cm_config_file, CMConfig)

替换上你的Email,密码,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。

获得domain_id可以用curl curl -k https://dnsapi.cn/Domain.List -d "login_email=xxx&login_password=xxx"

获得record_id类似 curl -k https://dnsapi.cn/Record.List -d "login_email=xxx&login_password=xxx&domain_id=xxx"