# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::DnsPeeringConfig (v2.10.1)

2.10.1 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.2.0 0.1.0 Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig::DnsPeeringConfig.

DNS peering config for the user VPC network.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #domains

    def domains() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Required. Domain names for which DNS queries should be forwarded to the target network.

### #domains=

    def domains=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Required. Domain names for which DNS queries should be forwarded to the target network.
**Returns**

- (::Array\<::String\>) --- Required. Domain names for which DNS queries should be forwarded to the target network.

### #target_network

    def target_network() -> ::String

**Returns**

- (::String) --- Required. Target network in 'target project' to which DNS queries should be forwarded to. Must be in format of `projects/{project}/global/networks/{network}`.

### #target_network=

    def target_network=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Target network in 'target project' to which DNS queries should be forwarded to. Must be in format of `projects/{project}/global/networks/{network}`.
**Returns**

- (::String) --- Required. Target network in 'target project' to which DNS queries should be forwarded to. Must be in format of `projects/{project}/global/networks/{network}`.

### #target_project

    def target_project() -> ::String

**Returns**

- (::String) --- Required. Target project ID to which DNS queries should be forwarded to. This can be the same project that contains the AgentGateway or a different project.

### #target_project=

    def target_project=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Target project ID to which DNS queries should be forwarded to. This can be the same project that contains the AgentGateway or a different project.
**Returns**

- (::String) --- Required. Target project ID to which DNS queries should be forwarded to. This can be the same project that contains the AgentGateway or a different project.