Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Latest commit

 

History

History
53 lines (36 loc) · 1.78 KB

dns.md

File metadata and controls

53 lines (36 loc) · 1.78 KB

Setting up DNS

A registered domain name is required to deploy PCF. If you don't already have a domain name, you can create and register a new domain name at Google Domains, or you can use a third-party domain name registrar.

The installation requires a child zone to be hosted on Cloud DNS

Create a Cloud DNS Zone

Using the UI

  1. Open Cloud DNS for your GCP Project
  2. Click 'Create Zone' and populate the following fields
    • Zone Name: pcf-zone
    • DNS Name: pcf.<your-domain-name.com>
  3. Click 'Create'

Or Using gcloud

Run the following, replacing <your-domain-name.com>:

gcloud dns managed-zones create pcf-zone --description="PCF Zone" --dns-name="pcf.<your-domain-name.com>"

Setup NS records

This process will differ by DNS host and you should consult the documentation for your provider to create the record.

The follow record must be created:

  • DNS Name: pcf.<your-domain-name.com>
  • Record Type: NS
  • Name Server: Populate with the rrdatas from: gcloud dns record-sets list --zone=pcf-zone --format=flattened --filter="type=NS". They will be in the format of ns-cloud-{a,b,c,..}{1,2,3..}.googledomains.com

Verifying NS records

Verify your NS records are properly configured by running dig:

dig pcf.<your-domain-name.com> NS +short

If the command returns your list on Cloud DNS servers (ns-cloud-..) then you have successfuly setup your zone. If it returns an empty result then you may need to wait for the record to propagate or the NS record may be incorrectly configured.

> After verifying your DNS records you can now move on to Deploying Pivotal Cloud Foundry