# Google Cloud Domains V1 Client - Class CustomDns (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 CustomDns.

Configuration for an arbitrary DNS provider.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name_servers` | `string[]` Required. 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. |
| `↳ ds_records` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.DnsSettings.DsRecord>` The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled. |

### getNameServers

Required. 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.

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

### setNameServers

Required. 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.

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

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

### getDsRecords

The list of DS records for this domain, which are used to enable DNSSEC.

The domain's DNS provider can provide the values to set here. If this
field is empty, DNSSEC is disabled.

| **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

The list of DS records for this domain, which are used to enable DNSSEC.

The domain's DNS provider can provide the values to set here. If this
field is empty, DNSSEC is disabled.

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

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