[英]Can't set PTR record for IPv6 address for Google Cloud VM
I have a Google Cloud Compute Engine VM, it has a public ipv4 IP and a public external ipv6 IP.我有一个谷歌云计算引擎虚拟机,它有一个公共 ipv4 IP 和一个公共外部 ipv6 IP。 In the console, I input the PTR record: blabla.mywebsite.com.在控制台中,我输入了 PTR 记录: blabla.mywebsite.com。 (the domain is already verified) both for ipv4 and ipv6 in the public DNS PTR record field, and ipv4 works normally, but ipv6 will return: (该域已验证)公共 DNS PTR 记录字段中的 ipv4 和 ipv6,并且 ipv4 正常工作,但 ipv6 将返回:
Invalid value for field 'resource.name': 'External IPv6'.字段“resource.name”的值无效:“外部 IPv6”。 Access config name is immutable.访问配置名称是不可变的。
screenshot of my config 1我的配置截图 1
screenshot of my config 2我的配置 2 的屏幕截图
Is that mean currently I can't add ptr records for an ipv6 IP?这是否意味着目前我无法为 ipv6 IP 添加 ptr 记录? or is there any wrong with my configuration?还是我的配置有问题?
It worked by running a gcloud command in Cloud Shell.它通过在 Cloud Shell 中运行 gcloud 命令来工作。
gcloud compute instances update-access-config [INSTANCE_NAME] --public-ptr --ipv6-public-ptr-domain [DOMAIN_NAME] gcloud 计算实例 update-access-config [INSTANCE_NAME] --public-ptr --ipv6-public-ptr-domain [DOMAIN_NAME]
Although this did add an IPv6 PTR record, in the console we can't see it.虽然这确实添加了一条 IPv6 PTR 记录,但在控制台中我们看不到它。
Thanks @john-hanley for answering this.感谢@john-hanley回答这个问题。
Reference: https://cloud.google.com/compute/docs/instances/create-ptr-record参考: https://cloud.google.com/compute/docs/instances/create-ptr-record
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.