# DnsForwarding

- [JSON representation](https://docs.cloud.google.com/vmware-engine/docs/reference/rest/v1/DnsForwarding#SCHEMA_REPRESENTATION)
- [ForwardingRule](https://docs.cloud.google.com/vmware-engine/docs/reference/rest/v1/DnsForwarding#ForwardingRule)
  - [JSON representation](https://docs.cloud.google.com/vmware-engine/docs/reference/rest/v1/DnsForwarding#ForwardingRule.SCHEMA_REPRESENTATION)

DNS forwarding config. This config defines a list of domain to name server mappings, and is attached to the private cloud for custom domain resolution.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "forwardingRules": [ { object (`https://docs.cloud.google.com/vmware-engine/docs/reference/rest/v1/DnsForwarding#ForwardingRule`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Identifier. The resource name of this DNS profile. Resource names are schemeless URIs that follow the conventions in <https://cloud.google.com/apis/design/resource_names>. For example: `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/dnsForwarding` |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Creation time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Last update time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `forwardingRules[]` | ``object (`https://docs.cloud.google.com/vmware-engine/docs/reference/rest/v1/DnsForwarding#ForwardingRule`)`` Required. List of domain mappings to configure |

## ForwardingRule

A forwarding rule is a mapping of a `domain` to `nameServers`. This mapping allows VMware Engine to resolve domains for attached private clouds by forwarding DNS requests for a given domain to the specified nameservers.

| JSON representation |
|---|
| ``` { "domain": string, "nameServers": [ string ] } ``` |

| Fields ||
|---|---|
| `domain` | `string` Required. Domain used to resolve a `nameServers` list. |
| `nameServers[]` | `string` Required. List of DNS servers to use for domain resolution |