我收到来自Google Cloud DNS服务的错误“错误请求”。也许我做错了什么?谢谢你的帮助。
gcloud dns managed-zone create --dns_name="archiver.photo" --description="Waitman Gobble's Archiver.Photo zone" archiverphoto
Creating {'dnsName': 'archiver.photo', 'name': 'archiverphoto',
'description': "Waitman Gobble's Archiver.Photo zone"} in
Do you want to continue (Y/n)? y
ERROR: (gcloud.dns.managed-zone.create) ResponseError: status=400, code=Bad Request, reason(s)=invalid
message=Invalid value for 'entity.managedZone.dnsName': 'archiver.photo'
$ whois archiver.photo
Domain Name: archiver.photo
Domain ID: DO_a14a5650944dd1238389653549ede7b5-UR
Updated Date: 2014-11-08T17:07:18.490Z
Creation Date: 2014-11-08T17:07:17.328Z
Registry Expiry Date: 2015-11-08T17:07:17.328Z
Registrant ID: tudgwdzl9bhpmwey
Registrant Name: Waitman Gobble
Registrant Organization: Waitman Gobble
答案 0 :(得分:2)
您忘记了dns名称末尾的句号。它应该是:
gcloud dns managed-zone create \
--dns_name="archiver.photo." \
--description="Waitman Gobble's Archiver.Photo zone" \
archiverphoto