En este tema se ofrece un ejemplo que muestra cómo usar Google Cloud DNS para configurar una zona DNS con un conjunto de registros que apunte a la dirección IP de entrada de Apigee hybrid.
Crear una zona gestionada y un conjunto de registros
En esta sección se explica cómo crear una zona DNS y un conjunto de registros en Google Cloud DNS.
Crea una zona gestionada y un conjunto de registros para tu dominio. Esta es la dirección que usarás
para hacer llamadas de proxy de API a híbrido.
Crea un conjunto de registros con las siguientes selecciones. Para obtener instrucciones, consulta Crear un registro.
Nombre de DNS: el nombre del punto de conexión con el que se comunican las llamadas a la API externa, como
api-services o example-endpoint.
Tipo de registro de recurso: A
TTL y Unidad TTL: acepta los valores predeterminados.
Dirección IP: la IP estática que has creado
En la vista Detalles de la zona, copia el nombre de DNS del registro A que acabas de crear y guárdalo en una variable de entorno DOMAIN. Ten cuidado de no incluir el punto al final.
export DOMAIN=dns_name_of_record
Añadir tus servidores DNS a Cloud DNS
En este paso, copia los servidores DNS de tu dominio en Google Cloud DNS.
De esta forma, Google Cloud podrá gestionar el DNS de tu proyecto de Google Cloud.
En la vista Detalles de zona se muestran cuatro servidores DNS como datos NS de la nueva zona. Copia los datos del registro DNS tal como se muestra en el siguiente ejemplo:
Configurar un dominio para que use los servidores de nombres de Google Cloud
Ve al registrador de tu dominio y edita la configuración de DNS de tu dominio para que use los servidores de nombres de Google Cloud.
En la siguiente captura de pantalla se muestra un ejemplo de cómo introducir los servidores de nombres de Google Cloud en Google Domains:
Google Cloud DNS gestiona ahora los registros DNS de tu dominio.
[[["Es fácil de entender","easyToUnderstand","thumb-up"],["Me ofreció una solución al problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Es difícil de entender","hardToUnderstand","thumb-down"],["La información o el código de muestra no son correctos","incorrectInformationOrSampleCode","thumb-down"],["Me faltan las muestras o la información que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-08-28 (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."]]