问题
I have uploaded a website to my Compute Engine instance and I wanted to set the registrar to send the visitors to the server (Compute Engine).
Where can I get the name servers of my instance/server over Compute Engine?
回答1:
Google Compute Engine does not provide a nameserver on the public internet. (It does provide a nameserver for the internal network which is private to your project, this allows you to connect to instances via their instance names rather than IP.)
If you want your instances to be available via public internet DNS nameservers, you'll need an external nameserver and one or more static IP addresses for your instances.
You have two options for static IP addresses on Compute Engine: You can have a static address for a single instance, or for the GCE Load Balancer.
See this documentation for how to configure a static IP address for an instance.
Using the Load Balancer is more flexible. See this documentation for details on Load Balancing.
回答2:
Google Public DNS provides public use name resolution for the masses here: https://developers.google.com/speed/public-dns/ for free and Google Cloud DNS provides here: https://developers.google.com/cloud-dns/ for nearly but not quite free.
来源:https://stackoverflow.com/questions/21846900/where-can-i-find-the-name-servers-of-google-compute-engine