DNS Response Policy Rule

A DNS Response Policy Rule in Google Cloud lets you define custom DNS behavior within a managed response policy. It allows administrators to control how DNS queries are resolved, such as blocking, redirecting, or modifying responses for specific domains. This helps enforce security, compliance, and internal naming policies across a network.

gcp.dns_response_policy_rule

Fields

TitleIDTypeData TypeDescription
_keycorestring
ancestorscorearray<string>
behaviorcorestringAnswer this query with a behavior rather than DNS data.
datadog_display_namecorestring
dns_namecorestringThe DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response Policy Rule.
kindcorestring
labelscorearray<string>
local_datacorejsonAnswer this query directly with DNS data. These ResourceRecordSets override any other DNS behavior for the matched name; in particular they override private zones, the public internet, and GCP internal DNS. No SOA nor NS types are allowed.
organization_idcorestring
parentcorestring
project_idcorestring
project_numbercorestring
region_idcorestring
resource_namecorestring
rule_namecorestringAn identifier for this rule. Must be unique with the ResponsePolicy.
tagscorehstore_csv
zone_idcorestring