This page provides instructions about how to create a peering zone. For detailed background information, see Peering zones .
You must be signed in to the Google Cloud console as an
    Identity and Access Management (IAM) member who has the DNS Peer role 
( roles/dns.peer 
) to the
    project that contains the producer VPC network.
To create a new managed private peering zone when you need one VPC network (the consumer network ) to query the VPC name resolution order of another VPC network (the producer network ), follow these steps.
Console
-  
In the Google Cloud console, go to the Create a DNS zonepage.
 -  
For the Zone type, select Private.
 -  
Enter a Zone namesuch as
my-new-zone. -  
Enter a DNS namesuffix for the private zone. All records in the zone share this suffix, for example:
example.private. -  
Optional: Add a description.
 -  
Under Options, select DNS peering.
 -  
Select the networks to which the private zone must be visible.
 -  
In Peer project, select a peer project.
 -  
In Peer network, select a peer network.
 -  
Click Create.
 
gcloud
-  
In the project that contains the consumer VPC network, identify or create a service account .
 -  
Grant the DNS Peer role to the service account (from the previous step) in the project that contains the producer VPC network.
gcloud projects add-iam-policy-binding PRODUCER_PROJECT_ID \ --member= SERVICE_ACCOUNT \ --role=roles/dns.peer
Replace the following:
-  
PRODUCER_PROJECT_ID: the ID of the project that contains the producer VPC network -  
SERVICE_ACCOUNT: the service account in the project that contains the consumer VPC network that was identified or created in step 1 
 -  
 -  
In the project that contains the consumer VPC network, grant the DNS Administrator role to the service account and create a new managed private peering zone by running the
dns managed-zones createcommand:gcloud dns managed-zones create NAME \ --description= DESCRIPTION \ --dns-name= DNS_SUFFIX \ --networks= CONSUMER_VPC_NETWORK \ --account= SERVICE_ACCOUNT \ --target-network= PRODUCER_VPC_NETWORK \ --target-project= PRODUCER_PROJECT_ID \ --visibility=private
Replace the following:
-  
NAME: a name for your zone -  
DESCRIPTION: a description for your zone -  
DNS_SUFFIX: the DNS suffix for your zone, such asexample.com -  
CONSUMER_VPC_NETWORK: the name of the consumer VPC network -  
SERVICE_ACCOUNT: the service account in the project that contains the consumer VPC network, identified in step 1 -  
PRODUCER_VPC_NETWORK: the name of the producer VPC network -  
PRODUCER_PROJECT_ID: the ID of the project that contains the producer VPC network 
 -  
 
Terraform
What's next
- To work with managed zones, see Create, modify, and delete zones .
 - To find solutions for common issues that you might encounter when using Cloud DNS, see Troubleshooting .
 - To get an overview of Cloud DNS, see Cloud DNS overview .
 

