# Google Cloud Container V1 Client - Class DNSConfig (2.10.0)

2.10.0 (latest) 2.9.0 2.8.1 2.7.0 2.6.1 2.5.0 2.4.0 2.3.4 2.2.1 2.1.0 2.0.0 1.33.0 1.32.0 1.31.0 1.30.3 1.24.0 1.23.0 1.22.0 1.21.1 1.20.0 1.19.0 1.18.0 1.17.1 1.16.0 1.15.0 1.14.0 1.13.1 1.12.1 1.10.3 1.9.1 Reference documentation and code samples for the Google Cloud Container V1 Client class DNSConfig.

DNSConfig contains the desired set of options for configuring clusterDNS.

Generated from protobuf message `google.container.v1.DNSConfig`

## Namespace

Google \\ Cloud \\ Container \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cluster_dns` | `int` cluster_dns indicates which in-cluster DNS provider should be used. |
| `↳ cluster_dns_scope` | `int` cluster_dns_scope indicates the scope of access to cluster DNS records. |
| `↳ cluster_dns_domain` | `string` cluster_dns_domain is the suffix used for all cluster service records. |
| `↳ additive_vpc_scope_dns_domain` | `string` Optional. The domain used in Additive VPC scope. |

### getClusterDns

cluster_dns indicates which in-cluster DNS provider should be used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Provider](https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.DNSConfig.Provider). |

### setClusterDns

cluster_dns indicates which in-cluster DNS provider should be used.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Provider](https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.DNSConfig.Provider). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getClusterDnsScope

cluster_dns_scope indicates the scope of access to cluster DNS records.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DNSScope](https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.DNSConfig.DNSScope). |

### setClusterDnsScope

cluster_dns_scope indicates the scope of access to cluster DNS records.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DNSScope](https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.DNSConfig.DNSScope). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getClusterDnsDomain

cluster_dns_domain is the suffix used for all cluster service records.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setClusterDnsDomain

cluster_dns_domain is the suffix used for all cluster service records.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAdditiveVpcScopeDnsDomain

Optional. The domain used in Additive VPC scope.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setAdditiveVpcScopeDnsDomain

Optional. The domain used in Additive VPC scope.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |