Google Public DNS64
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
はじめに
IPv6 と IPv4 の両方の接続を持つデュアル スタック ネットワークが一般的になりましたが、この接続はまだ普遍的なものではありません。IPv6 への移行の次のステップに進み、IPv6 専用ネットワークをデプロイするには、ネットワーク事業者が IPv4 専用のネットワークとサービスへのアクセスを維持する必要があります。IPv4 への IPv6 アクセスを実現するための移行メカニズムはいくつかあります。多くのネットワーク オペレーターに広く採用されている選択肢は NAT64 です。IPv4-IPv6 の変換機能とともに NAT64 ゲートウェイを使用すると、IPv6 のみのクライアントは、NAT64 ゲートウェイにルーティングする接頭辞で始まる合成 IPv6 アドレスを介して IPv4 専用サービスに接続できます。
DNS64 は、IPv4 のみの宛先用にこれらの合成 IPv6 アドレスを持つ AAAA レコードを返す DNS サービスです(DNS には A ですが AAAA レコードはありません)。これにより、IPv6 のみのクライアントは、他の構成なしで NAT64 ゲートウェイを使用できます。Google Public DNS64 は、予約済みの NAT64 プレフィックス 64:ff9b::/96 を使用して、グローバル サービスとして DNS64 を提供しています。
重要: 始める前に
Google Public DNS64 を使用するようにシステムを構成する前に、サービスの使用に影響する可能性がある次の制限事項を考慮してください。
Google Public DNS64 は、予約済みの NAT64 プレフィックス 64:ff9b::/96
を使用して NAT64 ゲートウェイにアクセスできるネットワークでのみ使用することを目的としています。NAT64 ゲートウェイに到達できないネットワークでは、この方法を使用しないでください。
Google Public DNS64 は、公共のインターネットから解決できないプライベート ドメインへのアクセスは提供しませんが、パブリック DNS レスポンスで返されるプライベート(RFC 1918)IPv4 アドレスの AAAA レコードを返すことはできます。
Google Public DNS64 はデュアル スタック ネットワークまたはホストには不要ですが、機能します。合成された AAAA レコードと元の A レコードの両方を返します(これにより、IPv4 経由ホストは IPv4 で直接アクセスされるのではなく、一般的に NAT64 接続が高速になります)。
Google Public DNS64 の構成
上記の Google Public DNS64 の制限に問題がない場合は、Google Public DNS の通常のスタートガイドの手順に沿って、標準のリゾルバ アドレスを次のコードに置き換えます。
- 2001:4860:4860::6464
- 2001:4860:4860::64
他の IPv6 アドレスを構成しない: DNS64 の信頼性が低下します。Google Public DNS IPv4 アドレス(8.8.8.8 または 8.8.4.4)も構成した場合、デュアルスタック ホストで合成の AAAA レコードが取得されないことがあります。
デバイスによっては、IPv6 アドレスの 8 つすべての部分に個別のフィールドを使用し、::
IPv6 の略語構文を受け入れることができない場合があります。このようなフィールドの場合は、次のように入力します。
- 2001:4860:4860:0:0:0:0:6464
- 2001:4860:4860:0:0:0:0:64
4 桁の 16 進数が必要な場合は、0
エントリを 0000
に展開し、64
エントリを 0064
に展開します。
セキュア DNS64
Google Public DNS64 は、DNS over HTTPS(DoH)と DNS over TLS(DoT)で、dns.google
ではなく dns64.dns.google
ドメインを使用したセキュアな DNS トランスポートをサポートしています。このドメインは上記の IPv6 アドレスに解決され、これらのアドレスのポート 443 と 853 の DoH サービスと DoT サービスに dns64.dns.google
の TLS 証明書が存在します。
Google Public DNS64 の RFC 8484 DoH URI テンプレートは https://dns64.dns.google/dns-query{?dns}
です。JSON API は https://dns64.dns.google/resolve?name=ipv4only.arpa&type=AAAA のような URL でもサポートされています(IPv6 対応システムからのみアクセス可能)。
DNS64 設定のテスト
スタートガイドのテスト手順に沿って、DNS64 の構成が機能していることを確認できます。NAT64 ゲートウェイにアクセスできない場合は、Wikipedia に、デプロイできる NAT64 の実装がいくつかリストされています。
NAT64 実装の一部は Google Public DNS64 で機能しないことが知られています。
MacOS X 10.11 以降には NAT64/DNS64 が組み込まれていますが、IPv6 に合格できないため、Google Public DNS64 リゾルバへのアクセスが防止されます。インターネット接続が IPv4 のみの IPv6 専用デバイスをテストするためのものであり、付属の DNS64 のみで動作します(Google Public DNS に直接接続された IPv6 専用のデバイスでは、8.8.8.8 と 8.8.4.4 を使用するように MacOS X システムを構成できます)。
Cisco ASA 9.0 以降では NAT64 が組み込まれていますが、既知のプレフィックス 64:ff9b::/96
はサポートされていないため、独自のプレフィックスを選択する必要があります。DNS64 は実装されませんが、NAT64 ゲートウェイを通過する DNS トラフィックの検査と NAT 書き換えが行われます。
Cisco ASA の背後にある IPv6 のみのデバイスは、次のリゾルバ アドレスを構成することで、Google Public DNS を使用して IPv4 接続を確立できます。
これにより、Cisco ASA NAT64 経由で Google Public DNS にクエリがルーティングされます。いくつかの Cisco ASA 構成が追加されると、AAAA クエリは A クエリに変換され、A レスポンスは構成済みの接頭辞を使用して AAAA に変換されます。
NAT64 アドレスと Google Public DNS IPv6 リゾルバ アドレス(2001:4860:4860::8888 または 2001:4860:4860::8844)の両方を使用すると機能しません。一方からのネガティブ レスポンスが他方に対して再度クエリされないためです。すべてのクエリについて、IPv6 または IPv4 DNS 解決を選択する必要があります。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2022-09-27 UTC。
[null,null,["最終更新日 2022-09-27 UTC。"],[[["\u003cp\u003eGoogle Public DNS64 enables IPv6-only clients to access IPv4-only services via a NAT64 gateway using the reserved prefix \u003ccode\u003e64:ff9b::/96\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUse the Google Public DNS64 resolver addresses: \u003ccode\u003e2001:4860:4860::6464\u003c/code\u003e and \u003ccode\u003e2001:4860:4860::64\u003c/code\u003e for IPv6-only client configurations.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Public DNS64 supports secure DNS transports like DNS over HTTPS (DoH) and DNS over TLS (DoT) using the \u003ccode\u003edns64.dns.google\u003c/code\u003e domain.\u003c/p\u003e\n"],["\u003cp\u003eEnsure your network has access to a NAT64 gateway using the \u003ccode\u003e64:ff9b::/96\u003c/code\u003e prefix before using Google Public DNS64, as it's a requirement.\u003c/p\u003e\n"],["\u003cp\u003eCertain NAT64 implementations like MacOS X's built-in version and Cisco ASA may require specific configurations or are incompatible with Google Public DNS64.\u003c/p\u003e\n"]]],["Network operators can deploy IPv6-only networks while maintaining IPv4 access using NAT64 gateways and DNS64 services. Google Public DNS64 provides synthetic IPv6 addresses for IPv4-only destinations, enabling IPv6 clients to connect without extra configuration. To use it, configure systems with specific IPv6 addresses (2001:4860:4860::6464, 2001:4860:4860::64). Secure DNS options like DoH and DoT are available. Testing verifies proper configuration, but some NAT64 implementations are incompatible.\n"],null,["# Google Public DNS64\n\nIntroduction\n------------\n\nDual-stack networks with both IPv6 and IPv4 connectivity are now common,\nbut they are still far from universal.\nTo take the next step of the transition to IPv6 and deploy IPv6-only networks,\nnetwork operators must still preserve access to IPv4-only networks and services.\nThere are several [transition mechanisms](https://en.wikipedia.org/wiki/IPv6_transition_mechanism) to provide [IPv6 access to IPv4](https://tools.ietf.org/html/rfc6144#section-2.1);\nan increasingly popular choice with many network operators is [NAT64](https://tools.ietf.org/html/rfc6146).\nUsing a NAT64 gateway with IPv4-IPv6 [translation capability](https://tools.ietf.org/html/rfc6145) lets\nIPv6-only clients connect to IPv4-only services via synthetic IPv6 addresses\nstarting with a prefix that routes them to the NAT64 gateway.\n\n[DNS64](https://tools.ietf.org/html/rfc6147) is a DNS service that returns AAAA records with these synthetic IPv6\naddresses for IPv4-only destinations (with A but not AAAA records in the DNS).\nThis lets IPv6-only clients use NAT64 gateways without any other configuration.\n**Google Public DNS64** provides DNS64 as a global service using the reserved\nNAT64 prefix [64:ff9b::/96](https://tools.ietf.org/html/rfc6052#section-2.1).\n\nImportant: Before you start\n---------------------------\n\nBefore configuring your systems to use Google Public DNS64,\nconsider the following limitations that may affect your use of the service:\n\n- Google Public DNS64 is intended for use only on networks with access to\n a NAT64 gateway using the reserved NAT64 prefix `64:ff9b::/96`.\n *Do not use it on networks that cannot reach such a NAT64 gateway*.\n\n- Google Public DNS64 does not provide access to private domains that cannot be\n resolved from the public Internet,\n although it *can* return AAAA records for private (RFC 1918) IPv4 addresses\n returned in public DNS responses.\n\n- Google Public DNS64 is not needed for dual-stack networks or hosts,\n but it does work, returning both synthesized AAAA and original A records\n (this can result in traffic to IPv4-only hosts going through NAT64 rather than\n directly via IPv4, but generally only when the NAT64 connection is faster).\n\nConfiguring Google Public DNS64\n-------------------------------\n\nIf your systems have no problems with the above Google Public DNS64 limitations,\nyou can follow the usual Google Public DNS [getting started](/speed/public-dns/docs/using) instructions,\nreplacing the standard resolver addresses with the following:\n\n- 2001:4860:4860::6464\n- 2001:4860:4860::64\n\n*Do not configure any other IPv6 addresses*: doing so makes DNS64 unreliable.\nIf you also configure Google Public DNS IPv4 addresses (8.8.8.8 or 8.8.4.4),\ndual-stack hosts may not get synthesized AAAA records sometimes.\n\nSome devices use separate fields for all eight parts of IPv6 addresses and\ncannot accept the `::` IPv6 abbreviation syntax. For such fields enter:\n\n- 2001:4860:4860:0:0:0:0:6464\n- 2001:4860:4860:0:0:0:0:64\n\nExpand the `0` entries to `0000`\nand the `64` entry to `0064`\nif four hex digits are required.\n\n### Secure DNS64\n\nGoogle Public DNS64 supports [DNS over HTTPS (DoH)](/speed/public-dns/docs/doh) and\n[DNS over TLS (DoT)](/speed/public-dns/docs/dns-over-tls) secure DNS transports using the\n`dns64.dns.google` domain instead of `dns.google`.\nThis domain resolves to the IPv6 addresses listed above, and the DoH and DoT\nservices at ports 443 and 853 for those addresses have TLS certificates for\n`dns64.dns.google`.\n\nThe RFC 8484 DoH URI template for Google Public DNS64 is\n`https://dns64.dns.google/dns-query{?dns}` and the JSON API is also supported\nwith URLs like [https://dns64.dns.google/resolve?name=ipv4only.arpa\\&type=AAAA](https://dns64.dns.google/resolve?name=ipv4only.arpa&type=AAAA)\n(only accessible from IPv6-capable systems).\n\nTest your DNS64 settings\n------------------------\n\nYou can follow the [test steps](/speed/public-dns/docs/using#testing) in the getting started guide to verify that\nyour DNS64 configuration is working.\nIf you don't have access to a NAT64 gateway,\nWikipedia lists several [NAT64 implementations](https://en.wikipedia.org/wiki/NAT64#Implementations) you can deploy yourself.\n\nSome NAT64 implementations are known not to work with Google Public DNS64:\n\n- MacOS X 10.11 and later incorporates NAT64/DNS64 but cannot pass IPv6,\n preventing access to the Google Public DNS64 resolvers.\n It is intended for testing IPv6-only devices when you only have IPv4\n connectivity to the Internet, and only works with the included DNS64\n (IPv6-only devices connected to it cannot use Google Public DNS directly,\n although you can configure the MacOS X system to use 8.8.8.8 and 8.8.4.4).\n\n- Cisco ASA 9.0 and later incorporates NAT64 but does not support the\n well-known prefix `64:ff9b::/96` and requires you to select your own prefix.\n It does not implement DNS64 but provides inspection and NAT rewriting of\n DNS traffic passing through the NAT64 gateway.\n\n IPv6-only devices behind a Cisco ASA can get IPv4 connectivity using\n Google Public DNS by configuring the following resolver addresses:\n - *NAT64-prefix* `::0808:0808` (*8.8.8.8 via Cisco ASA NAT64*)\n\n - *NAT64-prefix* `::0808:0404` (*8.8.4.4 via Cisco ASA NAT64*)\n\n This routes queries to Google Public DNS through the Cisco ASA NAT64.\n With some additional [Cisco ASA configuration](http://geenetworks.tumblr.com/post/35363923666),\n AAAA queries are translated into A queries,\n and A responses are translated back into AAAA with the configured prefix.\n\n Using both NAT64 addresses and Google Public DNS IPv6 resolver addresses\n (2001:4860:4860::8888 or 2001:4860:4860::8844) does not work,\n as negative responses from either one will not be re-queried with the other.\n You must choose either IPv6 or IPv4 DNS resolution for all queries."]]