{"id":474,"date":"2011-12-02T22:34:02","date_gmt":"2011-12-02T14:34:02","guid":{"rendered":"https:\/\/blog.rexdf.org\/?p=474"},"modified":"2011-12-02T22:34:02","modified_gmt":"2011-12-02T14:34:02","slug":"ipv6-apache-%e5%9f%9f%e5%90%8ddns-aaaa%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/blog.rexdf.org\/ja\/2011\/12\/ipv6-apache-%e5%9f%9f%e5%90%8ddns-aaaa%e9%85%8d%e7%bd%ae\/","title":{"rendered":"IPv6 Apache \u57df\u540dDNS AAAA\u914d\u7f6e"},"content":{"rendered":"<h2>IPv6 \u957f\u5ea6\uff1a<\/h2>\n<div>\n<div id=\"cnblogs_post_body\">\n<p>IPv6\u662f128bit\uff0c\u548cMD5\u4e00\u6837\uff0c\u5bf9\u6bcf\u4e2aIPv6\u8fdb\u884cMD5\uff0c\u4f1a\u51fa\u73b0\u4ec0\u4e48\u60c5\u51b5\uff1fMD5\u7528\u5b8c\u4e86\uff1f<\/p>\n<h2>IPv6 DNS\uff1a<\/h2>\n<pre>\u672a\u77e5\u56fd\u5bb6\n2001:470:20::2\n\u52a0\u62ff\u5927\n2001:478:6:0:230:48ff:fe22:6a29\n\u82f1\u56fd\n2001:7fd::1\n\u65e5\u672c\n2001:dc4::1<\/pre>\n<h2>Linux\u4f18\u5148\u4f7f\u7528IPv6 DNS\uff1a<\/h2>\n<pre>sudo vi \/etc\/resolv.conf<\/pre>\n<h2>Linux\u547d\u4ee4 ping IPv6\uff1a<\/h2>\n<p>Linux\u4e0bping IPv6\u9700\u8981\u4f7f\u7528ping6\uff0c\u5982\u679c\u4f7f\u7528ping\uff0c\u5219\u4f1a\u63d0\u793aping: unknown host\u3002<\/p>\n<pre>ping6 ipv6.google.com\nping6 2001:470:20::2\nPING 2001:470:20::2(2001:470:20::2) 56 data bytes\n64 bytes from 2001:470:20::2: icmp_seq=11 ttl=60 time=714 ms\n64 bytes from 2001:470:20::2: icmp_seq=12 ttl=60 time=4.65 ms\nping 2001:470:20::2\nping: unknown host 2001:470:20::2<\/pre>\n<h2>Windows\u547d\u4ee4 ping IPv6\uff1a<\/h2>\n<pre>ping -6 ipv6.google.com<\/pre>\n<h2>Linux\u547d\u4ee4 wget IPv6\uff1a<\/h2>\n<pre>wget -6 http:\/\/ipv6.google.com<\/pre>\n<h2>Linux\u548cWindows\u547d\u4ee4\u67e5\u8be2\u57df\u540dAAAA\u8bb0\u5f55\uff0c\u662f\u5426\u652f\u6301IPv6\uff1a<\/h2>\n<p>Linux\u548cWindows\u90fd\u662f\u4f7f\u7528nslookup\u7a0b\u5e8f\u67e5\u8be2dns\u3002<\/p>\n<pre>$ nslookup\n&gt; set querytype=aaaa\n&gt; ipv6.google.com\nServer:\t\t8.8.8.8\nAddress:\t8.8.8.8#53\n\nNon-authoritative answer:\nipv6.google.com\tcanonical name = ipv6.l.google.com.\nipv6.l.google.com\thas AAAA address 2404:6800:8005::6a<\/pre>\n<p>\u7531\u6b64\u53ef\u77e5\uff0cIPv4\u7684DNS\u4e5f\u80fd\u8fd4\u56de\u57df\u540d\u7684IPv6\u8bb0\u5f55\uff0c\u5373AAAA\u8bb0\u5f55\u3002<\/p>\n<pre>$ nslookup\n&gt; set querytype=aaaa\n&gt; google.com\nServer:\t\t2001:470:20::2\nAddress:\t2001:470:20::2#53\n\nNon-authoritative answer:\ngoogle.com\thas AAAA address 2001:4860:800b::69<\/pre>\n<h2>\u914d\u7f6e\u57df\u540d\u540c\u65f6\u652f\u6301IPv6\u548cIPv4\uff1a<\/h2>\n<p>\u9886\u5148\u7684\u57df\u540d\u6ce8\u518c\u5546\u540c\u65f6\u652f\u6301IPv6\u548cIPv4\uff0c\u6bd4\u5982godaddy\u3001namesilo\uff0c\u5728\u6ce8\u518c\u5546\u8fd9\u91cc\u8d2d\u4e70\u4e86\u57df\u540d\u4e4b\u540e\uff0c\u767b\u5f55\u5230\u57df\u540d\u7ba1\u7406\u754c\u9762\uff0c\u53ef\u4ee5\u8bbe\u7f6eA\u8bb0\u5f55\u548cAAAA\u8bb0\u5f55\u3002<\/p>\n<p>\u5047\u8bbe\u8d2d\u4e70\u4e86example.com\uff0c\u5e0c\u671bexample.com\u540c\u65f6\u652f\u6301IPv6\u548cIPv4\uff0c\u5219\u6dfb\u52a0\u4e00\u6761A\u8bb0\u5f55\u6307\u5411192.0.32.10\uff0c\u6dfb\u52a0\u4e00\u6761AAAA\u8bb0\u5f55\uff0c\u6307\u54112620:0:2d0:200::10\uff0c\u7b49\u5f85\u4e00\u6bb5\u65f6\u95f4\u5373\u53ef\u751f\u6548\uff08\u7b49\u5f85\u65f6\u95f4\u4e0eTTL\u6709\u5173\uff09\u3002\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n<pre>$ nslookup\n&gt; example.com\nServer:\t\t8.8.8.8\nAddress:\t8.8.8.8#53\n\nNon-authoritative answer:\nName:\texample.com\nAddress: 192.0.32.10\n&gt; set querytype=aaaa\n&gt; example.com\nServer:\t\t8.8.8.8\nAddress:\t8.8.8.8#53\n\nNon-authoritative answer:\nexample.com\thas AAAA address 2620:0:2d0:200::10<\/pre>\n<h2>\u914d\u7f6e\u57df\u540d\u53ea\u652f\u6301IPv6\uff1a<\/h2>\n<p>\u5047\u8bbe\u8d2d\u4e70\u4e86google.com\uff0c\u5e0c\u671bipv6.google.com\u53ea\u652f\u6301IPv6\uff0c\u4e0d\u652f\u6301IPv4\uff0c\u5219\u4e0d\u6dfb\u52a0A\u8bb0\u5f55\uff0c\u53ea\u6dfb\u52a0\u4e00\u6761AAAA\u8bb0\u5f55\uff0c\u6307\u54112404:6800:8005::68\u3002\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n<pre>$ nslookup\n&gt; ipv6.google.com\nServer:\t\t8.8.8.8\nAddress:\t8.8.8.8#53\n\nNon-authoritative answer:\nipv6.google.com\tcanonical name = ipv6.l.google.com.\n&gt; ipv6.l.google.com\nServer:\t\t8.8.8.8\nAddress:\t8.8.8.8#53\n\nNon-authoritative answer:\n*** Can't find ipv6.l.google.com: No answer\n&gt; set querytype=aaaa\n&gt; ipv6.google.com\nServer:\t\t8.8.8.8\nAddress:\t8.8.8.8#53\n\nNon-authoritative answer:\nipv6.google.com\tcanonical name = ipv6.l.google.com.\nipv6.l.google.com\thas AAAA address 2404:6800:8005::68<\/pre>\n<h2>Apache httpd\u914d\u7f6eIPv6\uff1a<\/h2>\n<p>Apache httpd\u914d\u7f6e\u652f\u6301IPv6\uff0c\u9700\u8981\u7ed9IP\u5e26\u4e0a\u65b9\u62ec\u53f7\uff0c\u53c2\u8003\uff1a<a href=\"http:\/\/lamp.linux.gov.cn\/Apache\/ApacheMenu\/mod\/core.html#virtualhost\" target=\"_blank\">http:\/\/lamp.linux.gov.cn\/Apache\/ApacheMenu\/mod\/core.html#virtualhost<\/a><\/p>\n<pre>&lt;VirtualHost [2404:6800:8005::68]:80&gt;\nServerAdmin webmaster@ipv6.google.com\nDocumentRoot \/var\/www\/html\/ipv6.google.com\/\nServerName ipv6.google.com\n&lt;\/VirtualHost&gt;<\/pre>\n<h2>IPv4\u5185\u7f51\u7528\u6237\u5982\u4f55\u4f7f\u7528IPv6\uff1a<\/h2>\n<p>\u5b89\u88c5Teredo\u96a7\u9053\u5373\u53ef\u3002\u8bbf\u95eeIPv6\u7f51\u7ad9\u901a\u8fc7Teredo\u670d\u52a1\u5668\u8f6c\u53d1\uff0c\u901f\u5ea6\u53d7\u5f71\u54cd\u3002<\/p>\n<p>\u6ce8\u610f\uff1a<\/p>\n<p>Teredo\u96a7\u9053\u4e0ePPPOE\u51b2\u7a81\uff0c\u89e3\u51b3\u65b9\u6cd5\uff1a\u4f7f\u7528\u8def\u7531\u62e8\u53f7\uff0c\u672c\u673a\u53ea\u6709\u4e00\u4e2a\u672c\u5730\u8fde\u63a5\u5373\u53ef\u3002<\/p>\n<p>Teredo\u96a7\u9053\u4e0e\u591a\u7f51\u5361\u51b2\u7a81\uff0c\u6bd4\u5982virtualbox\u7684\u865a\u62df\u7f51\u5361\uff0c\u89e3\u51b3\u529e\u6cd5\uff1a\u7981\u7528\u522b\u7684\u7f51\u5361\uff0c\u53ea\u7559\u4e00\u4e2a\u672c\u5730\u8fde\u63a5\u3002<\/p>\n<p>\u53c2\u8003\uff1a<\/p>\n<p>\u5728IPv4\u7f51\u7edc\u4e0b\u63a5\u5165IPv6\u7f51\u7edc\u7684\u65b9\u6cd5\uff1a<a href=\"http:\/\/www.ipv6bbs.cn\/thread-151-1-1.html\" target=\"_blank\">http:\/\/www.ipv6bbs.cn\/thread-151-1-1.html<\/a><\/p>\n<p>\u8d44\u6599\uff08\u4f60\u61c2\u7684\uff09\uff1a<a href=\"http:\/\/felixcat.net\/2010\/04\/install-teredo-ipv6\/\" target=\"_blank\">http:\/\/felixcat.net\/2010\/04\/install-teredo-ipv6\/<\/a><\/p>\n<p>http:\/\/www.ipv6home.cn\/html\/63\/t-17563.html<\/p>\n<p>Win 7\u4e0b\u7528Teredo\u96a7\u9053\u63a5\u5165IPv6\u540e\uff0c\u64cd\u4f5c\u7cfb\u7edf\u9ed8\u8ba4\u8fd8\u662f\u76f4\u63a5\u8d70IPv4\uff1a<a href=\"http:\/\/social.technet.microsoft.com\/Forums\/zh-CN\/window7betacn\/thread\/ae1f7d47-aa19-493d-a10d-f8032441a147\/\" target=\"_blank\">http:\/\/social.technet.microsoft.com\/Forums\/zh-CN\/window7betacn\/thread\/ae1f7d47-aa19-493d-a10d-f8032441a147\/<\/a><\/p>\n<p>teredo IPv6 \u914d\u7f6ehosts\u540e\u65e0\u6cd5\u4f7f\u7528gtalk\u5ba2\u6237\u7aef\uff08\u89e3\u51b3\u529e\u6cd5\uff1a\u4f7f\u7528Pidgin\uff09\uff1a<a href=\"http:\/\/www.google.com\/support\/forum\/p\/other\/thread?tid=4f65f26a7da1785f&amp;hl=zh-CN\" target=\"_blank\">http:\/\/www.google.com\/support\/forum\/p\/other\/thread?tid=4f65f26a7da1785f&amp;hl=zh-CN<\/a><\/p>\n<h2>IPv4\u5916\u7f51\u7528\u6237\u5982\u4f55\u4f7f\u7528IPv6\uff1a<\/h2>\n<p>\u5b89\u88c5isatap\u96a7\u9053\u5373\u53ef\u3002\u8bbf\u95eeIPv6\u7f51\u7ad9\u901a\u8fc7isatap\u7f51\u5173\u8f6c\u53d1\uff0c\u901f\u5ea6\u53d7\u5f71\u54cd\u3002<\/p>\n<h2>\u5982\u4f55\u8bbe\u7f6e\u6d4f\u89c8\u5668\u9ed8\u8ba4\u4f7f\u7528IPv6\uff1a<\/h2>\n<p>1\u3001\u771f\u5b9eIPv4 + \u771f\u5b9eIPv6<\/p>\n<p>\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u4f18\u5148\u4f7f\u7528IPv6\uff08\u672a\u6d4b\u8bd5\uff09\u3002<\/p>\n<p>2\u3001\u771f\u5b9eIPv4\u5185\u7f51+ IPv6 Teredo\u96a7\u9053<\/p>\n<p>\u5f53\u57df\u540d\u540c\u65f6\u6709A\u548cAAAA\u8bb0\u5f55\u65f6\uff0cWindows 7\u3001Ubuntu\u4f18\u5148\u4f7f\u7528\u771f\u5b9eIPv4\u5185\u7f51\uff0c\u6240\u4ee5\u9700\u8981\u4fee\u6539hosts\u52a0\u5165IPv6\u3002<\/p>\n<p>\u5f53\u57df\u540d\u53ea\u6709AAAA\u8bb0\u5f55\u65f6\uff0cUbuntu\u53ef\u76f4\u63a5\u8bbf\u95ee\uff08\u6bd4\u5982ipv6.google.com\uff09\uff0c\u4e0d\u7528\u914dhosts\u3002<\/p>\n<p>2\u3001\u771f\u5b9eIPv4\u5916\u7f51+ IPv6 isatap\u96a7\u9053<\/p>\n<p>XP\u53ef\u4ee5\u76f4\u63a5\u8bbf\u95eeipv6.google.com\uff0c\u4e0d\u80fd\u76f4\u63a5\u8bbf\u95eedocs.google.com\uff0c\u9700\u8981\u914dhosts\u3002<\/p>\n<h2>IPv6\u8def\u7531\u5668\uff1a<\/h2>\n<p>D-Link\u4e00\u767e\u5143\u7684\u5bb6\u7528\u8def\u7531\u5668\u56fd\u5916\u7248\u672c\u652f\u6301IPv6\uff1a<a href=\"http:\/\/www.dlink.com\/ipv6\" target=\"_blank\">http:\/\/www.dlink.com\/ipv6<\/a>\uff0c\u6bd4\u5982DIR-615\uff0c\u622a\u56fe\u5728\u6700\u540e\u3002\u4f46\u56fd\u5185\u7248\u672c\u4e0d\u77e5\u662f\u5426\u652f\u6301IPv6\uff0c\u4eac\u4e1c\u5ba2\u670d\u8bf4\u4e0d\u652f\u6301\u3002<\/p>\n<p>TP-Link\u5bb6\u7528\u8def\u7531\u5668\u4e0d\u652f\u6301IPv6\u3002<\/p>\n<p>\u662f\u4e0d\u662f\u5237\u4e86dd-wrt\u5b8c\u6574\u7248\u64cd\u4f5c\u7cfb\u7edf\u7684\u8def\u7531\u5668\u90fd\u652f\u6301IPv6\uff0c\u8fd8\u5f85\u786e\u8ba4\u3002<\/p>\n<h2>\u53c2\u8003\u8d44\u6599\uff1a<\/h2>\n<p>\u6d4b\u8bd5\u6d4f\u89c8\u5668\u662f\u5426\u652f\u6301IPv6\uff1a<a href=\"http:\/\/test-ipv6.com\/\" target=\"_blank\">http:\/\/test-ipv6.com\/<\/a><\/p>\n<p>\u6d4b\u8bd5\u6d4f\u89c8\u5668\u662f\u5426\u9ed8\u8ba4\u4f7f\u7528IPv6\uff1a<a href=\"http:\/\/www.kame.net\/\" target=\"_blank\">http:\/\/www.kame.net\/<\/a><\/p>\n<p>\u706b\u72d0\u6269\u5c55\uff0c\u663e\u793a\u6b63\u5728\u8bbf\u95ee\u7684\u7f51\u7ad9IP\uff0c\u53ef\u4ee5\u770b\u51fa\u662f\u5426\u662fIPv6\uff1a<a href=\"https:\/\/addons.mozilla.org\/zh-CN\/firefox\/addon\/worldip-flag-and-datacenter-pi\/\" target=\"_blank\">https:\/\/addons.mozilla.org\/zh-CN\/firefox\/addon\/worldip-flag-and-datacenter-pi\/<\/a><\/p>\n<p>Windows 7 in NAT Lan teredo\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-475 ls_lazyimg\" title=\"2011050819190311\" src=\"https:\/\/static.rexdf.org\/plugins\/images-lazyload-and-slideshow\/blank_1x1.gif\" file=\"https:\/\/blog.rexdf.org\/wp-content\/uploads\/2011\/12\/2011050819190311.png\" alt=\"\" width=\"691\" height=\"534\" \/><noscript><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-475\" title=\"2011050819190311\" src=\"https:\/\/blog.rexdf.org\/wp-content\/uploads\/2011\/12\/2011050819190311.png\" alt=\"\" width=\"691\" height=\"534\" \/><\/noscript><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-476 ls_lazyimg\" title=\"2011041602021396\" src=\"https:\/\/static.rexdf.org\/plugins\/images-lazyload-and-slideshow\/blank_1x1.gif\" file=\"https:\/\/blog.rexdf.org\/wp-content\/uploads\/2011\/12\/2011041602021396.png\" alt=\"\" width=\"1200\" height=\"667\" \/><noscript><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-476\" title=\"2011041602021396\" src=\"https:\/\/blog.rexdf.org\/wp-content\/uploads\/2011\/12\/2011041602021396.png\" alt=\"\" width=\"1200\" height=\"667\" \/><\/noscript><\/p>\n<p>Ubuntu 11.04 in NAT Lan teredo\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-477 ls_lazyimg\" title=\"2011041514201525\" src=\"https:\/\/static.rexdf.org\/plugins\/images-lazyload-and-slideshow\/blank_1x1.gif\" file=\"https:\/\/blog.rexdf.org\/wp-content\/uploads\/2011\/12\/2011041514201525.png\" alt=\"\" width=\"1185\" height=\"876\" \/><noscript><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-477\" title=\"2011041514201525\" src=\"https:\/\/blog.rexdf.org\/wp-content\/uploads\/2011\/12\/2011041514201525.png\" alt=\"\" width=\"1185\" height=\"876\" \/><\/noscript><\/p>\n<p>D-Link DIR-615 ipv6\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-478 ls_lazyimg\" title=\"2011041602000318\" src=\"https:\/\/static.rexdf.org\/plugins\/images-lazyload-and-slideshow\/blank_1x1.gif\" file=\"https:\/\/blog.rexdf.org\/wp-content\/uploads\/2011\/12\/2011041602000318.jpg\" alt=\"\" width=\"620\" height=\"515\" \/><noscript><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-478\" title=\"2011041602000318\" src=\"https:\/\/blog.rexdf.org\/wp-content\/uploads\/2011\/12\/2011041602000318.jpg\" alt=\"\" width=\"620\" height=\"515\" \/><\/noscript><\/p>\n<\/div>\n<div id=\"blog_post_info_block\">\n<div id=\"BlogPostCategory\"><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>IPv6 \u957f\u5ea6\uff1a IPv6\u662f128bit\uff0c\u548cMD5\u4e00\u6837\uff0c\u5bf9\u6bcf\u4e2aIPv6\u8fdb\u884cMD5 &hellip; <a href=\"https:\/\/blog.rexdf.org\/ja\/2011\/12\/ipv6-apache-%e5%9f%9f%e5%90%8ddns-aaaa%e9%85%8d%e7%bd%ae\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[19],"tags":[45,47],"class_list":["post-474","post","type-post","status-publish","format-standard","hentry","category-site-build","tag-ipv6","tag-linux"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/posts\/474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/comments?post=474"}],"version-history":[{"count":0,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/posts\/474\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/media?parent=474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/categories?post=474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/tags?post=474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}