Cloud DNS records managed zone updates that you make (modifying descriptions or configuring DNSSEC state) as operations. Managed zone creation and deletion are not recorded; deletion of a managed zone also deletes recorded operations on the zone.
These operations are independent of changes that you make to the resources within the managed zone. You can use the Google Cloud CLI or the REST API to see the history of these updates.
Permissions required for this task
To perform this task, you must have been granted the following permissions or the following IAM roles.
Display audit log of operations
Run the following command:
gcloud dns operations list --zones="ZONE_NAME"
ZONE_NAME with the name of a DNS zone in
This command prints the JSON formatted resource record sets for the first 100 records. You can specify an additional parameter:
--limit: maximum number of operations to list
from apiclient import errors from apiclient.discovery import build PROJECT_NAME='PROJECT_NAME' ZONE_NAME='ZONE_NAME' try: service = build('dns', 'v1') response = service.operations().list(project=PROJECT_NAME, managedZone=ZONE_NAME).execute() print(response) except errors.HttpError, error: print('An error occurred: %s' % error)
Replace the following:
PROJECT_NAME: the name of your project
ZONE_NAME: the name of a DNS zone in your project
- To work with managed zones, see Create, modify, and delete zones.
- To find solutions for common issues that you might encounter when using Cloud DNS, see Troubleshooting.
- To get an overview of Cloud DNS, see Cloud DNS overview.
- For the Cloud DNS command-line, see the Google Cloud CLI documentation.