Skip to main content

Dns Managed Zone

Provides a DNS managed zone and resource record set.

Examples#

Dns managed zone with one record set#

const domain = "gcp.grucloud.com";
const dnsManagedZone = provider.dns.makeManagedZone({
name: "dns-managed-zone",
properties: () => ({
dnsName: `${domain}.`,
recordSet: [
{
name: `${domain}.`,
rrdatas: ["1.2.3.1"],
ttl: 86400,
type: "A",
},
],
}),
});

Example Code#

Properties#

See create properties and recordSet properties