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 aRegistration'sdns_provider. You cannot configure the DNS zone itself
using the API. To configure the DNS zone, go toGoogle Domains.
Generated from protobuf messagegoogle.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
array
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.
Output only. The list of DS records published for this domain. The list is automatically populated whends_stateisDS_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.
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
setDsState
Required. The state of DS records for this domain. Used to enable or disable
automatic DNSSEC.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getDsRecords
Output only. The list of DS records published for this domain. The list is
automatically populated whends_stateisDS_RECORDS_PUBLISHED,
otherwise it remains empty.
Output only. The list of DS records published for this domain. The list is
automatically populated whends_stateisDS_RECORDS_PUBLISHED,
otherwise it remains empty.
[[["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 GoogleDomainsDns (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-domains/latest/V1.DnsSettings.GoogleDomainsDns)\n- [1.0.3](/php/docs/reference/cloud-domains/1.0.3/V1.DnsSettings.GoogleDomainsDns)\n- [0.5.5](/php/docs/reference/cloud-domains/0.5.5/V1.DnsSettings.GoogleDomainsDns)\n- [0.4.2](/php/docs/reference/cloud-domains/0.4.2/V1.DnsSettings.GoogleDomainsDns)\n- [0.3.1](/php/docs/reference/cloud-domains/0.3.1/V1.DnsSettings.GoogleDomainsDns)\n- [0.2.11](/php/docs/reference/cloud-domains/0.2.11/V1.DnsSettings.GoogleDomainsDns) \nReference documentation and code samples for the Google Cloud Domains V1 Client class GoogleDomainsDns.\n\nConfiguration for using the free DNS zone provided by Google Domains as a\n`Registration`'s `dns_provider`. You cannot configure the DNS zone itself\nusing the API. To configure the DNS zone, go to\n[Google Domains](https://domains.google/).\n\nGenerated from protobuf message `google.cloud.domains.v1.DnsSettings.GoogleDomainsDns`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Domains \\\\ V1 \\\\ DnsSettings\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getNameServers\n\nOutput only. A list of name servers that store the DNS zone for this domain. Each name\nserver is a domain name, with Unicode domain names expressed in\nPunycode format. This field is automatically populated with the name\nservers assigned to the Google Domains DNS zone.\n\n### setNameServers\n\nOutput only. A list of name servers that store the DNS zone for this domain. Each name\nserver is a domain name, with Unicode domain names expressed in\nPunycode format. This field is automatically populated with the name\nservers assigned to the Google Domains DNS zone.\n\n### getDsState\n\nRequired. The state of DS records for this domain. Used to enable or disable\nautomatic DNSSEC.\n\n### setDsState\n\nRequired. The state of DS records for this domain. Used to enable or disable\nautomatic DNSSEC.\n\n### getDsRecords\n\nOutput only. The list of DS records published for this domain. The list is\nautomatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,\notherwise it remains empty.\n\n### setDsRecords\n\nOutput only. The list of DS records published for this domain. The list is\nautomatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`,\notherwise it remains empty."]]