Skip to content

Export GCP DNS zone to bind zone file

Why

Sometimes clients may want to see all their records as a bind file, or they want to see it in yaml

How

First locate the Zone in GCP.

Once you've located it and entered it, make a note of the zone name.

How to find the zone name

In the URL, it will be between zones and details

dns/zones/examplezonename/details
gcloud dns record-sets export examplezonename.zonefile --zone=examplezonename --zone-file-format
gcloud dns record-sets export records.yaml --zone=examplezonename

Want to make this site better? Open a PR or help fund hosting costs