Hi, I have a bunch of domains that use Fastmail as an MX. I already have a variable that I include for them:
var FASTMAIL = [
MX('@', 10, 'in1-smtp.messagingengine.com.'),
MX('@', 20, 'in2-smtp.messagingengine.com.'),
]
Fastmail also supplied CNAMES to implement DKIM, and they all match a pattern that includes the domain name:
CNAME('fm1._domainkey', 'fm1.example.com.dkim.fmhosted.com.'),
CNAME('fm2._domainkey', 'fm2.example.com.dkim.fmhosted.com.'),
CNAME('fm3._domainkey', 'fm3.example.com.dkim.fmhosted.com.'),
Is it possible to implement a variable that can substitute/infer the domain name? Or is it possible to make a variable that’s a function, that accepts the domain name as an argument?
There’s a strong recommendation in the Code Tricks docs (https://stackexchange.github.io/dnscontrol/code-tricks) about not getting too fancy. Is this getting too fancy?
Thank you.