{"id":3198,"date":"2023-09-02T07:13:05","date_gmt":"2023-09-01T23:13:05","guid":{"rendered":"https:\/\/sg2cn.tk\/?p=3198"},"modified":"2023-09-02T07:13:05","modified_gmt":"2023-09-01T23:13:05","slug":"%e5%88%a9%e7%94%a8%e9%98%bf%e9%87%8c%e4%ba%91%e7%9a%84ddns","status":"publish","type":"post","link":"https:\/\/blog.zengqq.com.cn\/?p=3198","title":{"rendered":"\u5229\u7528\u963f\u91cc\u4e91\u7684DDNS"},"content":{"rendered":"\n<ul class=\"wp-block-list\">\n<li>\u7b2c\u4e00\u56de\u77e5\u9053\u81ea\u5df1\u8d2d\u4e70\u4e86\u963f\u91cc\u4e91\u7684\u57df\u540d\u4e4b\u540e\u5c31\u80fd\u514d\u8d39\u4f7f\u7528\u963f\u91cc\u4e91\u7684DDNS\uff0c\u6211\u628a\u5bb6\u91cc\u7684IP\u52a0\u5165\u5230\u963f\u91cc\u4e91\u7684\u4e91\u89e3\u6790\u4e4b\u540e\uff0c\u679c\u7136\u901a\u8fc7\u7aef\u53e3222\u6210\u529f\u7684\u8bbf\u95ee\u4e86\u6211\u7684\u5b89\u4fdd\u76d1\u63a7\u7cfb\u7edf\uff0c\u4f60\u4eec\u5c31\u522b\u8bd5\u4e86\uff0c\u6211\u7684\u670d\u52a1\u5668\u5728\u7b2c\u4e09\u5c42\u4e4b\u4e0b\uff0c\u8fd8\u52a0\u5bc6\u4e86port-222<\/li>\n\n\n\n<li>\u518d\u6309\u7167<a href=\"https:\/\/blog.csdn.net\/pzhier\/article\/details\/111570930\">https:\/\/blog.csdn.net\/pzhier\/article\/details\/111570930<\/a>\u6b64\u6587\u7684\u65b9\u6cd5\u62ff\u5230aliyun\u7684AccessKey\uff0c\u8fd9\u6837\u4e3a\u4e4b\u540e\u81ea\u52a8\u5316\u8dd1IP\u8bb0\u5f55\u503c\u66f4\u65b0\u6700\u51c6\u5907<\/li>\n\n\n\n<li><s>\u81ea\u52a8\u5316\u8dd1IP\u8bb0\u5f55\u503c\u66f4\u65b0\uff0c\u9700\u8981pip\u5b89\u88c51.aliyun ddns\u7684\u6838\u5fc3sdk\uff0c2.\u5b89\u88c5alidns\uff0c3.\u6216\u8005\u7528pip3\u5b89\u88c5aliyun-python-sdk-core-v3\uff0c<a href=\"https:\/\/github.com\/mgsky1\/DDNS\/blob\/master\/README_ZH_CN.md\" data-type=\"link\" data-id=\"https:\/\/github.com\/mgsky1\/DDNS\/blob\/master\/README_ZH_CN.md\">https:\/\/github.com\/mgsky1\/DDNS\/blob\/master\/README_ZH_CN.md<\/a>\u8fd9\u91cc\u6211\u9009\u62e9\u5229\u7528pip3\u5b89\u88c5aliyun-python-sdk-core-v3<\/s> \u4ee3\u7801\u90fd\u5df2\u7ecf\u8fc7\u65f6\uff0c\u81ea\u5df1\u5199\u4e86\u4e00\u4e2a\uff0c\u8fd9\u91cc\u4e0d\u591a\u8bf4\u4e86<\/li>\n\n\n\n<li>\u5728\u811a\u672cconfig.json\u91cc\u9762\u66f4\u65b0\u81ea\u5df1\u7684key<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"> 064933       : ************ ************** ************** **************\n 064933  note : PID '14825' started at 2023-09-02 06:49\n 064933       : ddns version  : 2.7.8-3\n 064933       : uci configuration:\nddns.aliddns.domain='home.Mytest.com.cn'\nddns.aliddns.enabled='1'\nddns.aliddns.ip_source='web'\nddns.aliddns.lookup_host='home.Mytest.com.cn'\nddns.aliddns.password='***PW***'\nddns.aliddns.service_name='aliyun.com'\nddns.aliddns.username='L*********************H4'\nddns.aliddns=service\n 064933       : verbose mode  : 0 - run normal, NO console output\n 064933       : check interval: 600 seconds\n 064933       : force interval: 259200 seconds\n 064933       : retry interval: 60 seconds\n 064933       : retry counter : 0 times\n 064933       : No old process\n 064934       : last update: never\n 064934       : Detect registered\/public IP\n 064934       : #> \/usr\/bin\/host -t A home.Mytest.com.cn  >\/var\/run\/ddns\/aliddns.dat 2>\/var\/run\/ddns\/aliddns.err\n 064934       : Registered IP '8.8.8.8' detected\n 064934  info : Starting main loop at 2023-09-02 06:49\n 064934       : Detect local IP on 'web'\n 064934       : #> \/usr\/bin\/wget-ssl -nv -t 1 -O \/var\/run\/ddns\/aliddns.dat -o \/var\/run\/ddns\/aliddns.err --no-proxy 'http:\/\/checkip.dyndns.com'\n 064934       : Local IP '8.8.8.8' detected on web at 'http:\/\/checkip.dyndns.com'\n 064934       : Forced Update - L: '8.8.8.8' == R: '8.8.8.8'\n 064934       : parsing script '\/usr\/lib\/ddns\/update_aliyun_com.sh'\n 064935       : #> wget --no-hsts -nv -t 1 -O \/var\/run\/ddns\/aliddns.dat -o \/var\/run\/ddns\/aliddns.err --no-proxy 'http:\/\/alidns.aliyuncs.com\/?Action=DescribeSubDomainRecords&amp;SubDomain=home.Mytest.com.cn&amp;Format=JSON&amp;TTL=600&amp;Version=2015-01-09&amp;AccessKeyId=LTAI5tJy4oSUqzcygn51R7H4&amp;SignatureMethod=HMAC-SHA1&amp;Timestamp=2023-09-01T22%3A49%3A35Z&amp;SignatureVersion=1.0&amp;SignatureNonce=5f9ef514-7fa6-46dd-8c36-871087aca736&amp;Signature=0q7BTXVB8vuSRW8tt08aIv06HsM%3D'\n 064935       : \u83b7\u53d6\u5230\u89e3\u6790\u8bb0\u5f55: {\"TotalCount\":1,\"PageSize\":20,\"RequestId\":\"DF34E130-A3E5-5833-BAC4-D1DD26A3EFB4\",\"DomainRecords\":{\"Record\":[{\"Status\":\"ENABLE\",\"Line\":\"default\",\"RR\":\"home\",\"Locked\":false,\"Type\":\"A\",\"DomainName\":\"Mytest.com.cn\",\"Value\":\"8.8.8.8\",\"RecordId\":\"848078242135446528\",\"TTL\":600,\"Weight\":1}]},\"PageNumber\":1}\n 064936       : \u83b7\u5f97\u89e3\u6790\u8bb0\u5f55ID: 848078242135446528, \u7c7b\u578b: A\n 064936  info : Forced update successful - IP: '8.8.8.8' send\n 064936       : Waiting 600 seconds (Check Interval)\n 065936       : Detect registered\/public IP\n 065936       : #> \/usr\/bin\/host -t A home.Mytest.com.cn  >\/var\/run\/ddns\/aliddns.dat 2>\/var\/run\/ddns\/aliddns.err\n 065936       : Registered IP '8.8.8.8' detected\n 065936  info : Rerun IP check at 2023-09-02 06:59\n 065936       : Detect local IP on 'web'\n 065936       : #> wget -nv -t 1 -O \/var\/run\/ddns\/aliddns.dat -o \/var\/run\/ddns\/aliddns.err --no-proxy 'http:\/\/checkip.dyndns.com'\n 065937       : Local IP '8.8.8.8' detected on web at 'http:\/\/checkip.dyndns.com'\n 065937       : Waiting 600 seconds (Check Interval)<\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[253,2730,249,89],"tags":[2793,2794,1649,2796,2795],"class_list":{"0":"post-3198","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-fun","7":"category-2730","8":"category-technology","9":"category-live","10":"tag-aliddns","11":"tag-ddns","12":"tag-openwrt","14":"tag-2795"},"_links":{"self":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/3198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3198"}],"version-history":[{"count":1,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/3198\/revisions"}],"predecessor-version":[{"id":3204,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/3198\/revisions\/3204"}],"wp:attachment":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}