Posted in Python onFebruary 14, 2014
def ddns(): """ 用当前ip更新ddns """ headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/json"} conn = httplib.HTTPSConnection("dnsapi.cn", timeout=30) conn.request("POST", "/Record.Ddns", urllib.urlencode(ddns_params), headers)response = conn.getresponse() # print response.status, response.reason # data = response.read() # print data conn.close() return response.status == 200
python实现dnspod自动更新dns解析的方法
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@