Topik ini menawarkan contoh yang menunjukkan cara menggunakan Google Cloud DNS untuk mengonfigurasi zona DNS dengan kumpulan data yang mengarah ke alamat IP masuk campuran Apigee 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-08-21 UTC."],[[["\u003cp\u003eThis content explains how to use Google Cloud DNS to set up a DNS zone and record set that directs to an Apigee hybrid ingress IP address.\u003c/p\u003e\n"],["\u003cp\u003eYou will need to create a managed public zone and then set up a new A record with a specified DNS name and your static IP address.\u003c/p\u003e\n"],["\u003cp\u003eAfter creating the A record, you will need to copy the DNS name and assign it to a \u003ccode\u003eDOMAIN\u003c/code\u003e environment variable.\u003c/p\u003e\n"],["\u003cp\u003eTo enable Google Cloud management of your DNS, you need to copy the four DNS server records from your new zone into your domain registrar.\u003c/p\u003e\n"],["\u003cp\u003eIf you already have a domain and DNS zone, you can skip these steps and simply configure your existing zone with a new record pointing to your ingress load balancer.\u003c/p\u003e\n"]]],[],null,["# DNS setup quickstart\n\n| You are currently viewing version 1.13 of the Apigee hybrid documentation. 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.\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.\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."]]