# DnsForwarding

- [JSON representation](https://docs.cloud.google.com/vmware-engine/docs/public/reference/rest/v1/DnsForwarding#SCHEMA_REPRESENTATION)
- [ForwardingRule](https://docs.cloud.google.com/vmware-engine/docs/public/reference/rest/v1/DnsForwarding#ForwardingRule)
  - [JSON representation](https://docs.cloud.google.com/vmware-engine/docs/public/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/public/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. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Last update time of this resource. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `forwardingRules[]` | ``object (`https://docs.cloud.google.com/vmware-engine/docs/public/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 |