← VHNIC diagrams

Google Cloud DNS

Last updated: 2026-06-22

This folder stores read-only inventory snapshots and notes for Google Cloud DNS.

The service account JSON key is not stored here; keep it under:

tools/google-cloud-dns/.secrets/codex-cloud-dns.json

Capture Inventory

After placing the JSON key, protect it:

powershell -NoProfile -ExecutionPolicy Bypass -File .\tools\google-cloud-dns\Protect-GoogleCloudDnsCredential.ps1

Then capture the current Cloud DNS zones and records:

powershell -NoProfile -ExecutionPolicy Bypass -File .\tools\google-cloud-dns\Capture-GoogleCloudDnsInventory.ps1

Snapshots are written to:

google-cloud-dns/inventory/snapshots/

Recommended Public Records

The current reviewed recommendation has been applied: use explicit public

service records instead of a broad wildcard. Re-check the intended shape:

powershell -NoProfile -ExecutionPolicy Bypass -File .\tools\google-cloud-dns\Set-GoogleCloudDnsRecommendedRecords.ps1

Re-apply/enforce the change if drift is found:

powershell -NoProfile -ExecutionPolicy Bypass -File .\tools\google-cloud-dns\Set-GoogleCloudDnsRecommendedRecords.ps1 -Apply

The script can be used to add/normalize explicit service CNAMEs such as: