Google Cloud Domains V1 Client - Class GoogleDomainsDns (0.3.1)

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 a Registration's dns_provider. You cannot configure the DNS zone itself using the API. To configure the DNS zone, go to Google Domains.

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

Namespace

Google \ Cloud \ Domains \ V1 \ DnsSettings

Methods

__construct

Constructor.

Parameters
NameDescription
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.

↳ ds_records array<Google\Cloud\Domains\V1\DnsSettings\DsRecord>

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_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.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNameServers

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
NameDescription
var string[]
Returns
TypeDescription
$this

getDsState

Required. The state of DS records for this domain. Used to enable or disable automatic DNSSEC.

Returns
TypeDescription
int

setDsState

Required. The state of DS records for this domain. Used to enable or disable automatic DNSSEC.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDsRecords

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDsRecords

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

Parameter
NameDescription
var array<Google\Cloud\Domains\V1\DnsSettings\DsRecord>
Returns
TypeDescription
$this