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

Defines the DNS configuration of a `Registration`, including name servers,
DNSSEC, and glue records.

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

## Namespace

Google \\ Cloud \\ Domains \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ custom_dns` | `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.DnsSettings.CustomDns` An arbitrary DNS provider identified by its name servers. |
| `↳ google_domains_dns` | `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.DnsSettings.GoogleDomainsDns` The free DNS zone provided by [Google Domains](https://domains.google/). |
| `↳ glue_records` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.DnsSettings.GlueRecord>` The list of glue records for this `Registration`. Commonly empty. |

### getCustomDns

An arbitrary DNS provider identified by its name servers.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.DnsSettings.CustomDns|null` |   |

### hasCustomDns

### setCustomDns

An arbitrary DNS provider identified by its name servers.

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

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

### getGoogleDomainsDns

The free DNS zone provided by
[Google Domains](https://domains.google/).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.DnsSettings.GoogleDomainsDns|null` |   |

### hasGoogleDomainsDns

### setGoogleDomainsDns

The free DNS zone provided by
[Google Domains](https://domains.google/).

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

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

### getGlueRecords

The list of glue records for this `Registration`. Commonly 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.GlueRecord>` |   |

### setGlueRecords

The list of glue records for this `Registration`. Commonly empty.

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

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

### getDnsProvider

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