How to link godaddy domain name to google compute engine?

I have created compute engine in google cloud. After that I have create a zone with the record sets of A and CNAME using external ip of my compute engine instance.

I have got some name servers by default like, ns-cloud-d1.googledomains.com.. But, it has . at the end of it and cloud services are not allowing me to take it off and adding it automatically even I remove it.

I tried to add that name servers in godaddy name servers. But I have an issue in godaddy domain settings. godaddy is not allowing me to add .(dot) at the end of name server. It throws error and not allowing me update name servers with the . dot ended.

I have been stuck here from Yesterday and I tried googling but didn't get satisfying result.

Please someone help me.

Thanks in advance.


Solution 1:

I don't know if this is what expected. If you need godaddy to be your primary DNS server then just go to godaddy's domain settings->additional settings->managed DNS page In record section click on Add, then add A and C name records. e.g. if your domain name is "example.com" and you want an entry for IP 114.64.78.9 as test.example.com then in A record say Host as 'test' points to 114.64.78.9

Add CNAME record with Host as 'test.example.com' points to '@'

Then wait for a few hours to get it to reflect globally or mention the godaddy's nameservers in your resolv.conf file

Hope this helps