[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-25。"],[[["\u003cp\u003eAfter creating a managed zone in Cloud DNS, you must update your domain registrar's name servers to point to the Cloud DNS name servers, which varies depending on your registrar.\u003c/p\u003e\n"],["\u003cp\u003eYou can find your Cloud DNS name servers by navigating to the Cloud DNS zones page in the Google Cloud console or by using the \u003ccode\u003egcloud dns managed-zones describe\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eThe IP addresses of Cloud DNS name servers can change and may vary geographically, so use \u003ccode\u003edig\u003c/code\u003e commands to query for the name servers you need to use.\u003c/p\u003e\n"],["\u003cp\u003eWhen updating your domain registrar, it is generally recommended to provide all the Cloud DNS name servers for high availability.\u003c/p\u003e\n"],["\u003cp\u003eAfter updating the name servers at your registrar, it can take some time for the changes to propagate, as resolvers may continue using the old name servers until the TTL expires.\u003c/p\u003e\n"]]],[],null,["# Update your domain's name servers\n\nAfter you [create a managed zone](/dns/docs/zones#creating_managed_zones), you\nmust change the name servers that are associated with your domain registration\nto point to the Cloud DNS name servers. The process differs by domain\nregistrar provider. Consult the documentation for your provider to\ndetermine how to make the name server change.\n\nIf you don't already have a domain name, you can use Cloud Domains to\nregister a domain. If you already have a domain registered by using\nCloud Domains, see\n[Configure DNS for the domain](/domains/docs/buy-register-domain#configure-dns)\nin the [Cloud Domains documentation](/domains/docs).\n| **Note:** Instructions to update your domain's name servers differ based on your registrar.\n\nLook up your Cloud DNS name servers\n-----------------------------------\n\nFor Cloud DNS to work, you must determine the name servers that\nhave been associated with your managed zone and verify that they match the name\nservers for your domain. Different managed zones have different name servers. \n\n### Console\n\n1. In the Google Cloud console, go to the **Cloud DNS zones**\n page.\n\n [Go to Cloud DNS zones](https://console.cloud.google.com/net-services/dns/)\n2. Under **Zone name**, select the name of your managed zone.\n\n3. On the **Zone details** page, click **Registrar setup** at the top right\n of the page.\n\n### gcloud\n\nTo return the list of name servers that are configured to serve\nDNS queries for your zone, run the\n[`dns managed-zones describe`](/sdk/gcloud/reference/dns/managed-zones/describe)\ncommand: \n\n```\ngcloud dns managed-zones describe ZONE_NAME\n```\n\nReplace \u003cvar translate=\"no\"\u003eZONE_NAME\u003c/var\u003e with the name of the managed zone for\nwhich you want to return a list of name servers.\n\nFind the IP addresses of your name servers\n------------------------------------------\n\nThe IP addresses of your Cloud DNS name servers change, and\nmay be different for users in different geographic locations.\n\nTo find the IP addresses for the name servers in the `a` name server shard,\nrun the following command: \n\n```\n dig ns-cloud-a1.googledomains.com +short\n dig ns-cloud-a2.googledomains.com +short\n dig ns-cloud-a3.googledomains.com +short\n dig ns-cloud-a4.googledomains.com +short\n```\n\nFor private zones, you can't query name servers on the public internet.\nTherefore, it's not necessary to find their IP addresses.\n\nTo find all the IP address ranges used by Google Cloud, see\n[Where can I find Compute Engine IP ranges?](/compute/docs/faq#find_ip_range)\n\nChange your domain registrar's name servers for your domain\n-----------------------------------------------------------\n\nNow that you have the list of Cloud DNS name servers hosting your\nmanaged zone, use your domain registrar to update the name servers\nfor your domain. Your domain registrar might be Cloud Domains or\na third-party registrar.\n| **Note:** Instructions to update your domain's name servers differ based on your registrar.\n\nTypically, you must provide at least two Cloud DNS name servers\nto the domain registrar. To benefit from Cloud DNS's high\navailability, you must use all the name servers.\n\nAfter changing your domain registrar's name servers, it can take a while for\nresolver traffic to be directed to your new Cloud DNS name\nservers. Resolvers could continue to use your old name servers until the TTL on\nthe old NS records expire.\n\nVerify your name servers\n------------------------\n\nVerify that the name servers for the domain match the name servers listed in\nthe Cloud DNS zone.\n\nTo look up name servers that are in use, run the `dig` command: \n\n```\ndig -t NS myzone.example.com.\n```\n| **Note:** If you're using Microsoft Windows and `dig` is not installed on your system, you can [run a `dig -t NS` query](https://toolbox.googleapps.com/apps/dig/#NS/) from the web interface.\n\nWhat's next\n-----------\n\n- To find solutions for common issues that you might encounter when using Cloud DNS, see [Troubleshooting](/dns/docs/troubleshooting).\n- To get an overview of Cloud DNS, see [Cloud DNS overview](/dns/docs/overview)."]]