createDnsZone( )


Creates a DNS zone in Google's Cloud DNS.

If there is an existing DNS zone for the domain, it's deleted before the new zone is created.

The call is synchronous, that means it fails in case of an error on Google's side.

You can only set up a single record object per DNS record type. If you want to specify multiple values for the same record type, you must save them in the values for the relevant type.

Important: This call requires an account level API key and cannot be authenticated with the standard authorization header.

Method Declaration
Copy
Method Parameters
dnsZoneDnsZoneRequired

DNS zone to create.

Returns
Return Type:Promise<DnsZone>
Did this help?