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

Defines a host on your domain that is a DNS name server for your domain
and/or other domains. Glue records are a way of making the IP address of a
name server known, even when it serves DNS queries for its parent domain.

For example, when `ns.example.com` is a name server for `example.com`, the
host `ns.example.com` must have a glue record to break the circular DNS
reference.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ host_name` | `string` Required. Domain name of the host in Punycode format. |
| `↳ ipv4_addresses` | `string[]` List of IPv4 addresses corresponding to this host in the standard decimal format (e.g. `198.51.100.1`). At least one of `ipv4_address` and `ipv6_address` must be set. |
| `↳ ipv6_addresses` | `string[]` List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g. `2001:db8::`). At least one of `ipv4_address` and `ipv6_address` must be set. |

### getHostName

Required. Domain name of the host in Punycode format.

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

### setHostName

Required. Domain name of the host in Punycode format.

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

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

### getIpv4Addresses

List of IPv4 addresses corresponding to this host in the standard decimal
format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
`ipv6_address` must be set.

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

### setIpv4Addresses

List of IPv4 addresses corresponding to this host in the standard decimal
format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
`ipv6_address` must be set.

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

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

### getIpv6Addresses

List of IPv6 addresses corresponding to this host in the standard
hexadecimal format (e.g. `2001:db8::`). At least one of
`ipv4_address` and `ipv6_address` must be set.

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

### setIpv6Addresses

List of IPv6 addresses corresponding to this host in the standard
hexadecimal format (e.g. `2001:db8::`). At least one of
`ipv4_address` and `ipv6_address` must be set.

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

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