# Google Cloud Domains V1 Client - Class GoogleDomainsDns (1.1.3)

1.1.3 (latest) 1.1.2 1.0.4 0.5.5 0.4.2 0.3.1 0.2.11 Reference documentation and code samples for the Google Cloud Domains V1 Client class GoogleDomainsDns.

Configuration for using the free DNS zone provided by Google Domains as a
`Registration`'s `dns_provider`. You cannot configure the DNS zone itself
using the API. To configure the DNS zone, go to
[Google Domains](https://domains.google/).

Generated from protobuf message `google.cloud.domains.v1.DnsSettings.GoogleDomainsDns`

## Namespace

Google \\ Cloud \\ Domains \\ V1 \\ DnsSettings

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name_servers` | `string[]` Output only. A list of name servers that store the DNS zone for this domain. Each name server is a domain name, with Unicode domain names expressed in Punycode format. This field is automatically populated with the name servers assigned to the Google Domains DNS zone. |
| `↳ ds_state` | `int` Required. The state of DS records for this domain. Used to enable or disable automatic DNSSEC. |
| `↳ ds_records` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.DnsSettings.DsRecord>` Output only. The list of DS records published for this domain. The list is automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`, otherwise it remains empty. |

### getNameServers

Output only. A list of name servers that store the DNS zone for this domain. Each name
server is a domain name, with Unicode domain names expressed in
Punycode format. This field is automatically populated with the name
servers assigned to the Google Domains DNS zone.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setNameServers

Output only. A list of name servers that store the DNS zone for this domain. Each name
server is a domain name, with Unicode domain names expressed in
Punycode format. This field is automatically populated with the name
servers assigned to the Google Domains DNS zone.

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

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

### getDsState

Required. The state of DS records for this domain. Used to enable or disable
automatic DNSSEC.

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

### setDsState

Required. The state of DS records for this domain. Used to enable or disable
automatic DNSSEC.

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

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

### getDsRecords

Output only. The list of DS records published for this domain. The list is
automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
otherwise it remains empty.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.DnsSettings.DsRecord>` |   |

### setDsRecords

Output only. The list of DS records published for this domain. The list is
automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,
otherwise it remains empty.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.DnsSettings.DsRecord>` |

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