If you are utilizing the Private Zone/Private DNS feature of Google Cloud, you can utilize the those name servers via private IP's through the tunnel established on the Harmony SASEimeter81 gateway. You can take full advantange of private DNS zones and still resolve external records. You can enable Private DNS after enabling the following changes in Google Cloud Platform.
Some prerequesities for this guide:
- GCP project
- VPC Network - This can be created or you can use Google predefined list of subnets
- Site to Site VPN tunnel to the VPC from Harmony SASE (Tunnel)
This process will allow the administrator to expose Google's Cloud DNS via a private IP inside one or multiple networks that you have defined in your VPC.
via GUI/Web
Navigate to Network Services -> Cloud DNS
Navigate to DNS Server Policies
Create a DNS Server Policy
Make sure that inbound query forwarding is On and all of the desired networks are selected.
You will get an IP address from the top of the network the policy is used by:
This is the private IP that you can use for Private DNS setup in Harmony SASE.
You can add more networks here if you like but please make sure that routing is available for those so that Harmony SASE can reach them via CLI.
- Install Google Cloud SDK (https://cloud.google.com/sdk/docs/install)
- Authenticate/Initialize your gcloud cli environment
- Create an inbound server policy for DNS
{{NAME}} - name for the policy.
{{DESCRIPTION}} - Description of the policy.
{{VPC_NETWORK_LIST}} - Comma separated list of VPC networks (not subnets)
Validation
Here is a succesfull DNS lookup from the gateway directly to the server and also to our dns forwarder
Directly querying the name server
Via local forwarder
Finally, enable Private DNS on the network: