Using Console
Using CLI
gcloud auth login
command.gcloud config set project [PROJECT_ID]
command.[MANAGED_ZONE_NAME]
with the name of the vulnerable managed zone in the following command:
[CNAME_RECORD_NAME]
with the name of the vulnerable CName record and [TTL]
with the desired Time To Live value.Using Python
google-cloud-dns
library by running the following command:
GOOGLE_APPLICATION_CREDENTIALS
to the path of your service account key file:
your-zone-name
with the actual name of your DNS zone and provide the path to your service account key file.