Cloudflare Mesh 的主机名路由
除了 CIDR 路由之外,您现在还可以向 Cloudflare Mesh 节点添加主机名路由。
Requests
wiki.internal.local- DNS query
Returns a token IP, then rewrites the destination to the real private IP.
100.80.0.0/16- Hostname route
Forwards traffic to the host on the local network
- Private host
wiki.internal.local·10.0.0.50
您可以通过将主机名的流量引导到 Mesh 节点来代替管理 IP 范围:
- 私有主机名(例如
wiki.internal.local)—— 通过名称访问内部应用程序,这在它具有未知或临时 IP 时非常有用。在 Mesh 上,您不需要运行 DNS 服务器;只需节点上的本地 hosts 文件条目即可,或者您可以使用 Gateway 解析器策略进行 split DNS。 - 公共主机名(例如
www.example.com)—— 通过该节点路由该主机名的流量,并经由该节点的公共 IP 出站。
有关设置步骤、先决条件和 DNS 选项,请参阅主机名路由。