{"id":345,"date":"2021-09-24T13:50:01","date_gmt":"2021-09-24T04:50:01","guid":{"rendered":"https:\/\/blog.mydepot.kr\/?p=345"},"modified":"2021-09-24T14:18:39","modified_gmt":"2021-09-24T05:18:39","slug":"dnszi-ddns-%ec%84%a4%ec%a0%95-%ec%89%98-%ec%8a%a4%ed%81%ac%eb%a6%bd%ed%8a%b8-%ec%8b%9c%eb%86%80%eb%a1%9c%ec%a7%80","status":"publish","type":"post","link":"https:\/\/blog.mydepot.kr\/?p=345","title":{"rendered":"dnszi DDNS \uc124\uc815 \uc258 \uc2a4\ud06c\ub9bd\ud2b8 (+\uc2dc\ub180\ub85c\uc9c0)"},"content":{"rendered":"<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nif &#x5B; -z ${4+x} ]; then\n      echo -e &quot;Alert: Need parameters (id, key, domain, records)\\nExample: bash $0 id key domain.com www drive photo&quot; \nelse\n      dnsziid=$1\n      ddnskey=$2\n      domain=$3\n      records=(&quot;${@:4}&quot;)\n      for record in &quot;${records&#x5B;@]}&quot;; do\n            \/usr\/bin\/curl -s &quot;http:\/\/ddns.dnszi.com\/set.html?user=$dnsziid&amp;auth=$ddnskey&amp;domain=$domain&amp;record=$record&quot;\n      done\nfi\n<\/pre><\/div>\n\n\n<p>\uc2e4\ud589\ubc29\ubc95<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\uc704 \uc2a4\ud06c\ub9bd\ud2b8\ub97c \ud30c\uc77c\uc774\ub984.sh \ub85c \uc800\uc7a5\ud55c\ub2e4.<\/li><li>\uc800\uc7a5\ud55c \uc704\uce58\ub85c shell\uc744 \uc774\uc6a9\ud574 \uc774\ub3d9\ud55c\ub2e4.<\/li><li>bash ddns.sh dnszi\uc544\uc774\ub514 ddns\ud0a4 \ub3c4\uba54\uc778 \ub808\ucf54\ub4dc1 \ub808\ucf54\ub4dc2 \ub808\ucf54\ub4dc3&#8230; \uc640 \uac19\uc740 \ubc29\uc2dd\uc73c\ub85c \uc785\ub825\ud55c\ub2e4. (\uc11c\ube0c\ub3c4\uba54\uc778\uc774 \uc5c6\ub294 \uacbd\uc6b0\uc5d0\ub294 &#8220;&#8221; \ub85c \ud30c\ub77c\ubbf8\ud130\ub97c \uc785\ub825)<\/li><li>\uc8fc\uae30\uc801\uc73c\ub85c \ud558\ub824\uba74 cron\uc5d0 \ub4f1\ub85d\ud55c\ub2e4. (\uc2dc\ub180\ub85c\uc9c0 \uc791\uc5c5\uc2a4\ucf00\uc974\ub7ec\uc5d0\ub3c4 \uac00\ub2a5)<\/li><li>profit<\/li><\/ol>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# \uc608\uc81c \uba85\ub839\uc5b4\nbash ddns.sh id key domain.com www &quot;&quot; drive photo\n<\/pre><\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc2e4\ud589\ubc29\ubc95 \uc704 \uc2a4\ud06c\ub9bd\ud2b8\ub97c \ud30c\uc77c\uc774\ub984.sh \ub85c \uc800\uc7a5\ud55c\ub2e4. \uc800\uc7a5\ud55c \uc704\uce58\ub85c shell\uc744 \uc774\uc6a9\ud574 \uc774\ub3d9\ud55c\ub2e4. bash ddns.sh dnszi\uc544\uc774\ub514 ddns\ud0a4 \ub3c4\uba54\uc778 \ub808\ucf54\ub4dc1 \ub808\ucf54\ub4dc2 \ub808\ucf54\ub4dc3&#8230; \uc640 \uac19\uc740 \ubc29\uc2dd\uc73c\ub85c \uc785\ub825\ud55c\ub2e4. (\uc11c\ube0c\ub3c4\uba54\uc778\uc774 \uc5c6\ub294 \uacbd\uc6b0\uc5d0\ub294 &#8220;&#8221; \ub85c \ud30c\ub77c\ubbf8\ud130\ub97c \uc785\ub825) \uc8fc\uae30\uc801\uc73c\ub85c \ud558\ub824\uba74 cron\uc5d0 \ub4f1\ub85d\ud55c\ub2e4. (\uc2dc\ub180\ub85c\uc9c0 \uc791\uc5c5\uc2a4\ucf00\uc974\ub7ec\uc5d0\ub3c4 \uac00\ub2a5) profit<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"no","_lmt_disable":"","footnotes":""},"categories":[10],"tags":[145,146,147,18,19,20],"class_list":["post-345","post","type-post","status-publish","format-standard","hentry","category-server","tag-dnszi","tag-ddns","tag-shell","tag-18","tag-19","tag-20"],"modified_by":"\ucc38\ube5b\ubc14\ub2e4","_links":{"self":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts\/345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=345"}],"version-history":[{"count":2,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts\/345\/revisions"}],"predecessor-version":[{"id":348,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts\/345\/revisions\/348"}],"wp:attachment":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}