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, whenns.example.comis a name server forexample.com, the
hostns.example.commust have a glue record to break the circular DNS
reference.
Generated from protobuf messagegoogle.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
array
List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.198.51.100.1). At least one ofipv4_addressandipv6_addressmust be set.
↳ ipv6_addresses
array
List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.2001:db8::). At least one ofipv4_addressandipv6_addressmust 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 ofipv4_addressandipv6_addressmust be set.
List of IPv4 addresses corresponding to this host in the standard decimal
format (e.g.198.51.100.1). At least one ofipv4_addressandipv6_addressmust 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 ofipv4_addressandipv6_addressmust be set.
List of IPv6 addresses corresponding to this host in the standard
hexadecimal format (e.g.2001:db8::). At least one ofipv4_addressandipv6_addressmust be set.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Domains V1 Client - Class GlueRecord (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-domains/latest/V1.DnsSettings.GlueRecord)\n- [1.0.3](/php/docs/reference/cloud-domains/1.0.3/V1.DnsSettings.GlueRecord)\n- [0.5.5](/php/docs/reference/cloud-domains/0.5.5/V1.DnsSettings.GlueRecord)\n- [0.4.2](/php/docs/reference/cloud-domains/0.4.2/V1.DnsSettings.GlueRecord)\n- [0.3.1](/php/docs/reference/cloud-domains/0.3.1/V1.DnsSettings.GlueRecord)\n- [0.2.11](/php/docs/reference/cloud-domains/0.2.11/V1.DnsSettings.GlueRecord) \nReference documentation and code samples for the Google Cloud Domains V1 Client class GlueRecord.\n\nDefines a host on your domain that is a DNS name server for your domain\nand/or other domains. Glue records are a way of making the IP address of a\nname server known, even when it serves DNS queries for its parent domain.\n\nFor example, when `ns.example.com` is a name server for `example.com`, the\nhost `ns.example.com` must have a glue record to break the circular DNS\nreference.\n\nGenerated from protobuf message `google.cloud.domains.v1.DnsSettings.GlueRecord`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Domains \\\\ V1 \\\\ DnsSettings\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getHostName\n\nRequired. Domain name of the host in Punycode format.\n\n### setHostName\n\nRequired. Domain name of the host in Punycode format.\n\n### getIpv4Addresses\n\nList of IPv4 addresses corresponding to this host in the standard decimal\nformat (e.g. `198.51.100.1`). At least one of `ipv4_address` and\n`ipv6_address` must be set.\n\n### setIpv4Addresses\n\nList of IPv4 addresses corresponding to this host in the standard decimal\nformat (e.g. `198.51.100.1`). At least one of `ipv4_address` and\n`ipv6_address` must be set.\n\n### getIpv6Addresses\n\nList of IPv6 addresses corresponding to this host in the standard\nhexadecimal format (e.g. `2001:db8::`). At least one of\n`ipv4_address` and `ipv6_address` must be set.\n\n### setIpv6Addresses\n\nList of IPv6 addresses corresponding to this host in the standard\nhexadecimal format (e.g. `2001:db8::`). At least one of\n`ipv4_address` and `ipv6_address` must be set."]]