欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

python實(shí)現(xiàn)dnspod自動更新dns解析的方法

 更新時(shí)間:2014年02月14日 11:03:17   作者:  
這篇文章主要介紹了python實(shí)現(xiàn)的dnspod自動更新dns解析的方法,需要的朋友可以參考下
復(fù)制代碼 代碼如下:

def ddns():
"""
用當(dāng)前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

相關(guān)文章

最新評論