Skip to content

DNS Adapter

Reference doc for the `sst.cloudflare.dns` functions..

The Cloudflare DnsAdapters lets you manage DNS records for domains hosted on [Cloudflare DNS]](https://developers.cloudflare.com/dns/).

This component looks up the zone for the domain and creates the DNS records.

sst.cloudflare.dns();

Specify the zone ID.

sst.cloudflare.dns({
zone: "415e6f4653b6d95b775d350f32119abb"
});

Functions

dns

dns(args?)

Parameters

Returns Object

DnsArgs

transform?

Type Object

Transform how this component creates its underlying resources.

transform.record?

Type RecordArgs | (args: RecordArgs => RecordArgs | void)

Transform the Cloudflare record resource.

zone?

Type Input<string>

The ID of the Cloudflare zone to create the record in.

{
zone: "415e6f4653b6d95b775d350f32119abb"
}