プロキシDNSレコード
Cloudflareの他の多くの部分に影響を与えるため、DNSレコードをCloudflareを通じてプロキシするべきです。
DNSとは何ですか?
DNSはドメインネームシステムの略です。
DNSがなければ、お気に入りのウェブサイトにアクセスするために長い数字の列を覚えておかなければなりません。DNSを使えば、example.comのようなものを覚えておくだけで、ブラウザが192.0.2.1のようなIPアドレスにアクセスします。
DNSの詳細については、Learning Center ↗を参照してください。
DNSレコードとは何ですか?
DNSレコードは、権威あるDNSサーバーに存在する指示であり、ドメインに関する情報を提供します。これには、そのドメインに関連付けられたIPアドレスや、そのドメインへのリクエストをどのように処理するかが含まれます。
「Cloudflareを通じてDNSをプロキシする」とは何ですか?
When you proxy specific DNS records through Cloudflare - specifically A, AAAA, or CNAME records — DNS queries for these will resolve to Cloudflare anycast IPs instead of their original DNS target. This means that all requests intended for proxied hostnames will go to Cloudflare first and then be forwarded to your origin server.
flowchart LR accTitle: Connections with Cloudflare A[Visitor] <-- Connection --> B[Cloudflare global network] <-- Connection --> C[Origin server]
This behavior allows Cloudflare to optimize, cache, and protect all requests to your application, as well as protect your origin server from DDoS attacks ↗.
Because requests to proxied hostnames go through Cloudflare before reaching your origin server, all requests will appear to be coming from Cloudflare’s IP addresses (and could potentially be blocked or rate limited). If you use proxied records, you may need to adjust your server configuration to allow Cloudflare IPs.
Cloudflare anycast IPs used to proxy traffic on your domain are assigned automatically. These IPs might change at any time for operational reasons. If you need to allowlist Cloudflare IPs on your infrastructure or hosting provider, include the full list of Cloudflare anycast IPs ↗.
As an Enterprise customer, you have the option to get static IPs or bring your own IPs (BYOIP).
レコードをプロキシする前に、プロキシが何をするのか、どのような制限があるのかを説明したガイドを確認してください。
リクエストがブロックされないように、オリジンでCloudflareのIPアドレスを許可する必要があるかもしれません。
次に、CloudflareのDNSレコードを更新して、プロキシステータスがプロキシ済みになるようにします。
