简体   繁体   English

有没有人设法在 GCP 上创建一个反向 DNS 区域?

[英]has anyone managed to create a Reverse DNS Zone on GCP -?

Just created a Reverse DNS Managed Zone as mentioned here - https://cloud.google.com/dns/docs/zones/managed-reverse-lookup-zones - How do we add VM IPs?刚刚创建了一个反向 DNS 托管区域,如此处所述 - https://cloud.google.com/dns/docs/zones/managed-reverse-lookup-zones - 我们如何添加 VM IP? with Terraform - Since the Reverse DNS Zone adds Networks to it - Wondering How will add PTR records to the Zone?使用 Terraform - 由于反向 DNS 区域向其中添加了网络 - 想知道如何将 PTR 记录添加到该区域?

You cannot add records to a reverse lookup DNS zone directly;您不能直接将记录添加到反向查找 DNS 区域; the data comes from the Compute Engine IP address data.数据来自 Compute Engine IP 地址数据。 Instead, add or modify the Access Configuration for the VM.相反,添加或修改 VM 的访问配置

Note: You must first verify ownership of the domain .注意:您必须首先验证域的所有权 Ownership is verified in Webmaster Central .所有权在Webmaster Central中得到验证。

To create a DNS PTR record for an existing Compute Engine VM instance, use the command flag --public-ptr .要为现有 Compute Engine 虚拟机实例创建 DNS PTR 记录,请使用命令标志--public-ptr

Examples:例子:

gcloud compute instances add-access-config [INSTANCE_NAME] \
    --public-ptr --public-ptr-domain [DOMAIN_NAME]

Use this command if the VM already has an access configuration:如果 VM 已经具有访问配置,请使用此命令:

gcloud compute instances update-access-config [INSTANCE_NAME] \
    --public-ptr --public-ptr-domain [DOMAIN_NAME]

Creating a PTR Record for a VM Instance 为 VM 实例创建 PTR 记录

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我无法在 Google Cloud DNS 中创建 DNS 区域 - I cannot create a DNS zone in Google Cloud DNS 如何找到私有区域中托管的 GCP Cloud DNS 服务器的内部 IP 地址 - How to find the Internal IP Address of GCP Cloud DNS server hosted in Private Zone GCP 上的 Pulumi - 如何使用 Docker 容器实例创建托管实例组 - Pulumi on GCP - How to create a Managed Instance Group with Docker Container Instances 我只需要为 3 个云提供商 AWS、GCP、阿里巴巴创建集中式 DNS/LDAP - I just Need to create centralized DNS/LDAP for 3 cloud provider AWS, GCP, Alibaba 什么是 Azure 私有 DNS 区域组? - What is Azure Private DNS Zone Group? 限制对托管区域的访问的 IAM 条件 - IAM condition to restrict access to a managed zone 云无法解析 GCP Cloud 中的 CNAME DNS - cloud not resolve CNAME in GCP Cloud DNS 无法在 GCP 管理的 Redis 上运行 CLIENT 命令 - Cannot run CLIENT command at GCP managed Redis 如何在 GCP 中创建 ClusterPodMonitoring? - How to create ClusterPodMonitoring in GCP? Google 云数据库迁移服务 - 是否有人使用 DMS 使用 VPC 对等将 GCP postgres 实例从一个服务项目迁移到另一个服务项目? - Google Cloud Database Migration Service - Has anyone used DMS to migrate GCP postgres instance from one service project to another using VPC Peering?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM