How to point a domain to google cloud vm

11,768 views
Skip to first unread message

Damodar Bashyal

unread,
Jul 13, 2016, 9:12:30 PM7/13/16
to gce-discussion

I have setup google cloud debian VM and has IP: "104.197.233.183".


I setup google dns as:



google cloud dns



Domain name server for 11tips.com at the registar looks like this:



NS records for a domain



Virtual host conf in the server looks like this:


<VirtualHost *:80> ServerAdmin webm...@11tips.com ServerName 11tips.com ServerAlias www.11tips.com DocumentRoot /var/www/html .... </VirtualHost>



And last, /etc/hosts looks like this:



127.0.0.1 localhost 11tips.com www.11tips.com ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 10.128.0.4 lamp-1-vm.c.codefight-cms.internal lamp-1-vm # Added by Google



Now when I go to 11tips.com, it doesn't load a site. What am I missing here. I am not good with servers, so hopefully someone can help me point my domain to google cloud.



Thank you.

Kamran (Google Cloud Support)

unread,
Jul 13, 2016, 11:28:05 PM7/13/16
to gce-discussion

Hello Damodar,

The name servers that are added to your registrar's custom nameservers does not match to ones that are assigned to your zone. Update the custom nameservers of your registrar with the name servers that are showed in the picture 1 (I listed them as below). This should resolve the issue.


Hope this helps.

Sincerely,

Damodar Bashyal

unread,
Jul 13, 2016, 11:57:49 PM7/13/16
to Kamran (Google Cloud Support), gce-discussion
Hi Kamran,

Thanks for pointing that out. I was creating and deleting few times so, looks like it got changed in google dns and I didn't notice that. Hopefully that will fix the issue.

--
© 2016 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to a topic in the Google Groups "gce-discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gce-discussion/U9JxzP-1pPE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gce-discussio...@googlegroups.com.
To post to this group, send email to gce-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/b5b29a91-697a-421c-8e8e-921a1752ebaf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Damodar Bashyal

unread,
Jul 14, 2016, 12:17:52 AM7/14/16
to gce-discussion
Hi Kamaran,

Thank you. That did the trick.

Another question, how can I make 'ns1.11tips.com' and ''ns2.11tips.com'' nameservers. When I use them in my another domain, it says, they are not valid nameservers.

I have created them as CNAME on the registar's domain manager.

Thank you.

Kind Regards,
Damodar Bashyal

Kamran (Google Cloud Support)

unread,
Jul 14, 2016, 10:56:09 PM7/14/16
to gce-discussion
Hello Damodar,

Using CNAME records pointing ns1.11tips.com to ns-cloud-d1.googledomains.com and ns2.11tips.com to ns-cloud-d2.googledomains.com should be a solution. Right now, your CNAME records pointing both of them to 11tips.com, that is the reason you see "not valid nameservers" errors.

Let me know if this resolves the issue.

Sincerely,

Damodar Bashyal

unread,
Jul 15, 2016, 4:24:00 AM7/15/16
to gce-discussion
Thank you Kamran.

This is what I created in google dns now. Is this what you meant? 




Also, do I need to create CNAME or A record on the registar's domain manager for ns1.11tips.com - ns4.11tips.com?

Thank you.
Damu


Kamran (Google Cloud Support)

unread,
Jul 15, 2016, 5:42:57 PM7/15/16
to gce-dis...@googlegroups.com

Hi Damodar,

That's correct. However, let me clarify that in this configuration, nsX.11tips.com are aliases to ns-cloud-dX.googledomains.com name servers and can be used as DNS settings to resolve your domains that their zones are created on Cloud DNS, like 11tips.com

That being said, if you're looking to create "vanity nameservers" to resolve all public domains, then try pointing them to public nameservers like:


I hope this helps.

Sincerely,

Damodar Bashyal

unread,
Jul 16, 2016, 6:46:32 AM7/16/16
to gce-discussion
Hi Kamran,

What I want is:
  1. point all domains to my google cloud vm
  2. point mail settings on all domains to google apps (gmail). (now as I am using google dns, mail seems broken)
  3. I wanted to use nsX.11tips.com just because if IP changes, i have to update at one place.
Is there very simple tutorial for newbie like me?

Thanks.
Damodar

Kamran (Google Cloud Support)

unread,
Jul 17, 2016, 2:39:07 PM7/17/16
to gce-discussion

Hi Damodar,

The "A" DNS record type is most commonly used to map domain name or hostname to an IP address. If the IP address changes, the A record has to be edited and updated by the new IP address. This is the only solution for such a change, and CNAME records cannot help in this situation.

That being said, to overcome unwanted changes of your VM's external IP address you can reserve a static external IP address and assign it permanently to your VM instance. For more information on reserving and assigning an static external IP address to a virtual machine, or promoting an ephemeral external IP address to a static external IP address, please visit this article.

Hope this helps.

Sincerely,
Reply all
Reply to author
Forward
0 new messages