https://pulumi.com logo
#general
Title
# general
b

bland-cat-29878

09/07/2021, 2:54 PM
Hi all - I'm trying to create an MX record via the Cloudflare provider but keep getting a
error: failed to create DNS record: HTTP status 400: DNS Validation Error (1004)
:
Copy code
new cloudflare.Record(`aspmx.l.google.com.`, {
            type: "MX",
            zoneId: zne.id,
            name: `aspmx1`,
            value: "aspmx.l.google.com.",
            ttl: 60,
        });
l

limited-rainbow-51650

09/07/2021, 3:16 PM
@bland-cat-29878 have you tried without the trailing
.
in your
value
? DNS providers are not consistent in whether the trailing dot is needed or not.
Looking at the Cloudflare API documentation, I see it without trailing dot: https://api.cloudflare.com/#dns-records-for-a-zone-create-dns-record
b

bland-cat-29878

09/07/2021, 3:38 PM
yeah I did - actually tried a lot of variations but nothing working yet
Assuming value (pulumi api) = content (cloudflare api) - but whatever I try here it just results the same
22 Views