Using Console
Using CLI
gcloud init
to authenticate and set up the CLI with your GCP account.Using Python
google-cloud-dns
library by running the command pip install google-cloud-dns
in your Python environment.GOOGLE_APPLICATION_CREDENTIALS
environment variable to the path of the JSON key file.python script_name.py
.