Wednesday, April 1, 2020


I have a zone that's hosted by AWS route53 called My goal was to create a few machines on GCP and have them resolve to a delegated subdomain.  For example:

These are the steps required to do this:

1. Create the zone on "GCPs Network Services", "Cloud DNS"
  • Give it a Zone name
  • Give it a DNS name:
  • Provide a description
  • Click Create
  • Note the name records, for example:
2. Go to AWS route53 and create a NS record for this zone under the domain.
  • Click on the zone in route53
  • Create a record set
    • On the right hand side, provide the name: scollier-gcp
    • Change the type to NS
    • Copy the nameservers from GCP and paste into the NS record.
    • Click Create
3. Create the A record on GCP
  • Return to GCP
    • Go to "VPC Network", then "External IP Addresses"
      • Create an external IP address, note it
    • Go back to "GCPs Network Services", "Cloud DNS" and click the zone
    • Add a record set
      • Give it a DNS Name
      • Provide the external IP address 
      • Click Create
4. Test that it works
  • Go to Linux terminal
$ dig +short

$ dig +short SOA 1 21600 3600 259200 300

$ dig +short SOA 1 7200 900 1209600 86400

No comments:

Post a Comment