Google Cloud DNS subdomain forwarding

2,186 views
Skip to first unread message

Jeff Doe

unread,
Jul 16, 2019, 7:13:23 PM7/16/19
to cloud-dns-discuss
We use Google Cloud DNS and have a domain name subdomain.domain.com that we would like redirected to subdomain.microsoftonline.com. I know from previous jobs we've used GoDaddy which allows you to forward a sub domain. I'm not seeing that as an option in the Google Cloud DNS and was wondering if anyone could assist?

mohibul

unread,
Jul 17, 2019, 4:48:49 PM7/17/19
to cloud-dns-discuss

Hello,


I understand at Google Cloud DNS you have a domain name subdomain.domain.com that we would like redirected to subdomain.microsoftonline.com.


What you are asking for is known as "CNAME at the apex". "CNAME at the apex" is not currently supported by Cloud DNS and is technically against DNS's RFCs. As per RFC 1034 section 3.6.2[1] 

“If a CNAME RR is present at a node, no other data should be present; this ensures that the data for a canonical name and its aliases cannot be different.” Also as per GCP public documentation[2]:

“A common cause of this error (cnameResourceRecordSetConflict) is trying to create a CNAME record at the zone apex. This is not possible because it would conflict with the required SOA and NS records of the same name.”


However, if your hosted domain at Google Cloud DNS is domain.com and you would like to redirect subdomain.domain.com to subdomain.microsoftonline.com, you could follow the public documentation [3,4] to create CNAME Redirects.



[1] https://tools.ietf.org/html/rfc1034

[2] https://cloud.google.com/dns/docs/troubleshooting#cnameresourcerecordsetconflict

[3] https://cloud.google.com/storage/docs/request-endpoints#cname

[4] https://cloud.google.com/dns/docs/quickstart#create_a_cname_record





On Tuesday, July 16, 2019 at 7:13:23 PM UTC-4, Jeff Doe wrote:

Trendy Market

unread,
May 5, 2020, 9:22:21 AM5/5/20
to cloud-dns-discuss
Thanks i also wanted to know about this process. This helps me a lot to gain some technical knowledge.
Reply all
Reply to author
Forward
0 new messages