A DNS Policy in Google Cloud lets you manage and control DNS behavior for your Virtual Private Cloud networks. It allows configuration of features such as inbound and outbound forwarding, logging, and DNS peering. With DNS policies, you can customize how name resolution works within your network, apply security controls, and integrate with on-premises DNS systems.

gcp.dns_policy

Fields

TitleIDTypeData TypeDescription
_keycorestring
alternative_name_server_configcorejsonSets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
ancestorscorearray<string>
datadog_display_namecorestring
descriptioncorestringA mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the policy's function.
enable_inbound_forwardingcoreboolAllows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
enable_loggingcoreboolControls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
idcorestringUnique identifier for the resource; defined by the server (output only).
kindcorestring
labelscorearray<string>
namecorestringUser-assigned name for this policy.
networkscorejsonList of network names specifying networks to which this policy is applied.
organization_idcorestring
parentcorestring
project_idcorestring
project_numbercorestring
region_idcorestring
resource_namecorestring
tagscorehstore_csv
zone_idcorestring