Topik ini menawarkan contoh yang menunjukkan cara menggunakan Google Cloud DNS untuk mengonfigurasi zona DNS dengan kumpulan data yang mengarah ke alamat IP masuk hybrid Apigee Anda (biasanya alamat ini akan berupa IP statis yang sebelumnya Anda konfigurasi selama penginstalan hybrid.)
Mendapatkan domain terdaftar
Anda dapat mendaftarkan nama domain melalui Google Domains atau registrar domain lain pilihan Anda.
Membuat zona dan kumpulan data terkelola
Bagian ini menjelaskan cara membuat zona DNS dan kumpulan data di Google Cloud DNS.
Buat zona terkelola dan kumpulan data untuk domain Anda. Ini adalah alamat yang akan Anda gunakan untuk melakukan panggilan proxy API ke hybrid.
Buat set data baru dengan pilihan berikut. Untuk mengetahui petunjuknya, lihat
Membuat data baru.
DNS Name: Nama endpoint yang berkomunikasi dengan panggilan API eksternal, seperti
api-services atau example-endpoint
Resource Record Type: A
TTL dan TTL Unit: Terima default
Alamat IP: IP statis yang Anda buat
Di tampilan Detail zona, salin nama DNS data A yang baru saja Anda buat dan simpan ke variabel lingkungan DOMAIN. Berhati-hatilah agar tidak menyertakan titik di akhir.
export DOMAIN=dns_name_of_record
Menambahkan server DNS ke Cloud DNS
Pada langkah ini, Anda akan menyalin server DNS dari domain ke Google Cloud DNS.
Tindakan ini memungkinkan Google Cloud mengelola DNS untuk Project Google Cloud Anda.
Tampilan Detail zona mencantumkan empat server DNS sebagai data NS untuk zona baru Anda. Salin data data DNS seperti yang ditunjukkan pada contoh berikut:
Mengonfigurasi domain Anda untuk menggunakan server nama Google Cloud
Buka registrar domain Anda dan edit setelan DNS domain untuk menggunakan Server nama Google Cloud.
Screenshot berikut menunjukkan contoh memasukkan server nama Google Cloud di Google Domains:
Google Cloud DNS kini mengelola data DNS untuk domain Anda.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-05 UTC."],[[["\u003cp\u003eThis documentation guides users on configuring a DNS zone and record set in Google Cloud DNS to point to their Apigee hybrid ingress IP address, specifically for version 1.7, which is end of life and should be upgraded.\u003c/p\u003e\n"],["\u003cp\u003eUsers can register a domain name through Google Domains or another registrar, or they can use a domain they already own and configure the zone with a new record set pointing to their ingress load balancer.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves creating a managed public zone and a new record set of type 'A' with a DNS name and the static IP address, and ensuring they do not include a period at the end of their DNS name.\u003c/p\u003e\n"],["\u003cp\u003eUsers must add their DNS servers to Google Cloud DNS to enable Google Cloud to manage the DNS for their Google Cloud Project, which involves copying the four listed DNS servers in the Zone details view.\u003c/p\u003e\n"],["\u003cp\u003eThe final step requires the user to configure their domain to utilize the Google Cloud Name servers, achieved by modifying the domain's DNS settings at their respective registrar.\u003c/p\u003e\n"]]],[],null,["# DNS setup quickstart\n\n| You are currently viewing version 1.7 of the Apigee hybrid documentation. **This version is end of life.** You should upgrade to a newer version. For more information, see [Supported versions](/apigee/docs/hybrid/supported-platforms#supported-versions).\n\n\nThis topic offers an example showing how to use [Google Cloud DNS](https://cloud.google.com/dns) to configure\na DNS zone with a record set that points to your Apigee hybrid ingress IP address (typically this address\nwill be a [static IP that you previously configured](/apigee/docs/hybrid/v1.7/precog-add-dns#reserve-a-static-ip) during the hybrid installation.)\n| **Note:** If you already have your own domain and DNS zone to use, you do not need to do these steps. You can simply configure your own zone with a new record set pointing to your ingress load balancer, as described in [Step 5: Configure your DNS](/apigee/docs/hybrid/v1.7/precog-add-dns).\n\nGet a registered domain\n-----------------------\n\n\nYou can register a domain\nname through [Google Domains](https://domains.google/) or another\ndomain registrar of your choice.\n\nCreate a managed zone and record set\n------------------------------------\n\n\nThis section explains how to create a DNS zone and record set in Google Cloud DNS.\n\n1. Create a managed zone and record set for your domain. This is the address you will use to make API proxy calls to hybrid.\n 1. Create a managed public zone. For instructions, see [Create a managed public zone](https://cloud.google.com/dns/docs/set-up-dns-records-domain-name#create_a_managed_public_zone).\n 2. Create a new record set with the following selections. For instructions, see [Create a new record](https://cloud.google.com/dns/docs/set-up-dns-records-domain-name#create_a_new_record).\n - **DNS Name** : The name of the endpoint external API calls communicate with, like `\n api-services` or `example-endpoint`\n - **Resource Record Type** : **A**\n - **TTL** and **TTL Unit**: Accept defaults\n - **IP Address**: The static IP you created\n2. In the **Zone details** view, copy the DNS name of the **A** record you just created and save it to a **`DOMAIN`** environment variable. Be careful to not include the period at the end.\n\n ```\n export DOMAIN=dns_name_of_record\n ```\n\nAdd your DNS servers to Cloud DNS\n---------------------------------\n\n3. In this step, you copy the DNS servers from your domain to [Google Cloud DNS](https://cloud.google.com/dns/). Doing so allows Google Cloud to manage the DNS for your Google Cloud Project.\n4. The **Zone details** view lists four DNS servers as the NS data for your new zone. Copy the DNS record data as shown in the following example:\n\nConfigure your domain to use the Google Cloud name servers\n----------------------------------------------------------\n\n\nGo to your domain registrar and edit your domain's DNS settings to use the Google Cloud Name servers.\n\n\nThe following screenshot shows an example of entering the Google Cloud name servers in [Google Domains](https://domains.google.com):\n\n\nGoogle Cloud DNS now manages the DNS records for your domain.\n[1](/apigee/docs/hybrid/v1.7/precog-gcpaccount) [2](/apigee/docs/hybrid/v1.7/precog-gcpproject) [3](/apigee/docs/hybrid/v1.7/precog-enableapi) [4](/apigee/docs/hybrid/v1.7/precog-provision) [5](/apigee/docs/hybrid/v1.7/precog-add-dns) [(NEXT) Step 6: Create an environment group](/apigee/docs/hybrid/v1.7/precog-add-environment)\n\n\u003cbr /\u003e"]]