{"id":430,"date":"2024-09-02T23:34:25","date_gmt":"2024-09-02T15:34:25","guid":{"rendered":"https:\/\/blog.messyghost.net\/?p=430"},"modified":"2024-09-04T20:29:57","modified_gmt":"2024-09-04T12:29:57","slug":"%e7%bb%99%e8%87%aa%e5%b7%b1%e7%9a%84%e8%99%9a%e6%8b%9f%e6%9c%ba%e4%b8%80%e4%b8%aa%e5%85%ac%e7%bd%91ipv6%e5%9c%b0%e5%9d%80%ef%bc%8c%e5%b9%b6%e8%bf%9b%e8%a1%8cddns","status":"publish","type":"post","link":"https:\/\/blog.messyghost.net\/?p=430","title":{"rendered":"\u7ed9\u81ea\u5df1\u7684\u865a\u62df\u673a\u4e00\u4e2a\u516c\u7f51IPv6\u5730\u5740\uff0c\u5e76\u8fdb\u884cDDnS"},"content":{"rendered":"\n<p>\u6700\u8fd1\u60f3\u5728\u81ea\u5df1\u7684Linux\u865a\u62df\u673a\u91cc\u642d\u5efaCode Server\uff0c\u8fd9\u6837\u4e0a\u8bfe\u65f6\u5c31\u53ef\u4ee5\u8fdc\u7a0b\u8fde\u63a5\u5230\u865a\u62df\u673a\u5e76\u7f16\u5199\u4ee3\u7801\u3002\u73b0\u5728\u6709\u516c\u7f51IPv6\u73af\u5883\uff0c\u9700\u8981\u8fdb\u884cDDnS\u3002<\/p>\n\n\n\n<p>\u9996\u5148\u8e29\u7684\u7b2c\u4e00\u4e2a\u5751\u662f\u8def\u7531\u5668\u7684\u9632\u706b\u5899\uff0c\u53ea\u80fd\u7f51\u4e0a\u641c\u7d22\u89e3\u51b3\u65b9\u6848\uff0c\u516b\u4ed9\u8fc7\u6d77\u5404\u663e\u795e\u901a\u3002\uff08\u5c0f\u63d2\u66f2\uff1a\u672c\u6765\u60f3\u62c6\u5f00\u8def\u7531\u5668\uff0c\u7528\u4e32\u53e3\u6765\u83b7\u53d6\u8def\u7531\u5668\u7684\u63a7\u5236\u53f0\u7684\uff0c\u4f46\u662f\u7f51\u4e0a\u7684\u6559\u7a0b\u5c45\u7136\u6ca1\u63d0\u5230\u8fd9\u8def\u7531\u5668\u6709\u4e24\u9897\u9690\u85cf\u87ba\u4e1d\u9501\u4f4f\u5916\u58f3\uff0c\u81f4\u4f7f\u6211\u628a\u8def\u7531\u5668\u5916\u58f3\u62c6\u88c2\u4e86\uff09<\/p>\n\n\n\n<p>\u7136\u540e\u662f\u865a\u62df\u673a\u7684\u9632\u706b\u5899\u89c4\u5219\u592a\u4e25\u683c\uff0c\u5bfc\u81f4\u4e0d\u80fd\u901a\u8fc7SLAAC\u5206\u914dIPv6\u5730\u5740\uff0c\u5e94\u5f53\u653e\u884cICMPv6\u7684nd-router-advert\uff08SLAAC\uff09\u548cnd-neighbor-socilit\uff08\u7c7b\u4f3cARP\uff09\uff0c\u5206\u522b\u63a5\u6536\u5730\u5740\u524d\u7f00\uff0c\u4ee5\u53ca\u516c\u5e03\u81ea\u5df1\u7684IPv6\u5730\u5740\u7ed9\u5c40\u57df\u7f51\u8bbe\u5907\u3002\u56e0\u4e3a\u5bf9IPv6\u4e0d\u4e86\u89e3\uff0c\u8bbe\u7f6e\u4e86\u4e25\u683c\u7684\u9632\u706b\u5899\uff08\u4ee5\u4e3a\u963b\u6321ICMPv6\u4e0d\u4f1a\u5bfc\u81f4\u7c7bARP\u7684\u534f\u8bae\u88ab\u963b\u6321\u5728\u5916\uff09\uff0c\u5bfc\u81f4\u4e00\u76f4\u6ca1\u6709\u5730\u5740\u6216\u8005\u65e0\u6cd5\u8bbf\u95ee\u3002<\/p>\n\n\n\n<p>\u63a5\u7740\u5c31\u53ef\u4ee5DDnS\u4e86\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u53ef\u4ee5\u83b7\u53d6\u516c\u7f51IPv6\u5730\u5740\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ip -o addr show | grep inet6 | grep \"scope global\" | grep dynamic | grep temporary | grep -m1 -oE \"(&#91;0-9a-f]{1,4}:){7}&#91;0-9a-f]{1,4}\"<\/code><\/pre>\n\n\n\n<p>\u7f16\u5199\u811a\u672c\u5b8c\u6210DDnS\u3002<\/p>\n\n\n\n<p>\u8fd8\u6709\u65e0443\u548c80\u7aef\u53e3\u5b8c\u6210\u57fa\u4e8eacme\u534f\u8bae\u7684\u8bc1\u4e66\u81ea\u52a8\u66f4\u65b0\uff0c\u57fa\u4e8e<strong>certbot<\/strong>\u53ef\u7528<strong>&#8211;manual-auth-hook<\/strong>\u9009\u9879\uff0c\u8fd9\u4e2a\u9009\u9879\u6307\u5b9a\u4e00\u4e2a\u811a\u672c\uff0c\u5728\u66f4\u65b0\u8bc1\u4e66\u524d\u6267\u884c\u6b64\u811a\u672c\u534f\u52a9\u9a8c\u8bc1\u57df\u540d\u6240\u6709\u6743\uff0ccertbot\u4f1a\u4f20\u5165<strong>CERTBOT_VALIDATION<\/strong>\u73af\u5883\u53d8\u91cf\u4f5c\u4e3a\u9700\u8981\u8bbe\u7f6e\u7684DNS\u503c\uff0cDNS\u952e\u540d\u4e3a_acme-challenge.\u57df\u540d(TXT\u7c7b\u578b)\uff0c\u5229\u7528API\u66f4\u65b0DNS\u8bb0\u5f55\u540e\u518d\u7b49\u5f85\u4e00\u4f1a\uff08\u4ee5\u4fbfDNS\u7684\u4fee\u6539\u4f20\u8fbe\u5230\u4e16\u754c\uff09\u5373\u53ef\u6210\u529f\u66f4\u65b0\u8bc1\u4e66\u3002<\/p>\n\n\n\n<p>\u5148\u5927\u6982\u5199\u4e2a\u8349\u7a3f\uff0c\u7ec6\u8282\u65e5\u540e\u8865\u5145\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u60f3\u5728\u81ea\u5df1\u7684Linux\u865a\u62df\u673a\u91cc\u642d\u5efaCode Se&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/blog.messyghost.net\/?p=430\">Continue reading<span class=\"screen-reader-text\">\u7ed9\u81ea\u5df1\u7684\u865a\u62df\u673a\u4e00\u4e2a\u516c\u7f51IPv6\u5730\u5740\uff0c\u5e76\u8fdb\u884cDDnS<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[12],"class_list":["post-430","post","type-post","status-publish","format-standard","hentry","category-3","tag-12","entry"],"_links":{"self":[{"href":"https:\/\/blog.messyghost.net\/index.php?rest_route=\/wp\/v2\/posts\/430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.messyghost.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.messyghost.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.messyghost.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.messyghost.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=430"}],"version-history":[{"count":4,"href":"https:\/\/blog.messyghost.net\/index.php?rest_route=\/wp\/v2\/posts\/430\/revisions"}],"predecessor-version":[{"id":435,"href":"https:\/\/blog.messyghost.net\/index.php?rest_route=\/wp\/v2\/posts\/430\/revisions\/435"}],"wp:attachment":[{"href":"https:\/\/blog.messyghost.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.messyghost.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.messyghost.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}