Hi all - I'm trying to create an MX record via the...
# general
b
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
@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
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