-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEATURE: M365_BUILDER add support for alternative MX hosts #3191
base: main
Are you sure you want to change the base?
Conversation
CC @juliusrickert @nikolamilekic for feedback |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In short, I advise against creating a custom solution for this.
Instead, I'd like to see documentation on how to solve the situation using existing mechanisms. (See code comment.)
skypeForBusiness: true, | ||
mdm: true, | ||
initialDomain: "example.onmicrosoft.com", | ||
}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The trailing comma should be removed, I think.
value.domainGUID + '.mail.protection.outlook.com.' | ||
) | ||
); | ||
r.push(MX(value.label, 0, value.domainGUID + '.' + value.mxHost + '.')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PowerShell(?) commands (link to highlight, might not work in all browsers) returns the whole MX hostname: contosotest-com.o-v1.mx.microsoft
.
Therefore, and to make the helper more flexible in general, I advise to do one of the following:
- Document how to disable the MX and set the Microsoft-provided hostname. (preferred)
- Allow any MX to be set, possibly multiple MXs
Documentation for the first option could look like this:
D("example.com", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER),
M365_BUILDER("example.com", {
mx: false,
…
}),
MX('@', 0, 'example-com.<random>.mx.microsoft.') // Note the trailing dot.
);
@tlimoncelli I understand the challenges of supporting complex macros, but at the same time, I highly value the ability to glance at a DNSControl file and quickly get the idea of what is configured and what isn't (and correctly). For complex configurations such as that of M365 (or MTA-STS), I believe it is especially important to have a macro because I only need to read a single line of code and know what it pertains to instead of 20. I think it will be of enormous help for the adoption of various complex DNS conventions and standards (such as MTA-STS) if there were an easy way to configure them. With the DMARC and SPF builders, DNSControl is already well on the way of becoming just such a tool. Wouldn't it be great if we went all the way? If the cost is community-supported maintenance of complex builders, would that be so bad? I'd much rather place trust on a community of experts to maintain a set of macros, than risk copy/paste mistakes from documentation. |
Thank you for taking the time to write up your thoughts. "Builders" are perhaps one of DNSControl's most unique and powerful features. They are complex to maintain, and I'd like to improve that. One idea I had was to remove them from the system, so that people can maintain them independently. However I think that just takes a big problem and moves it elsewhere. I'd rather make them easier to manage:
I don't know how to do those things in JavaScript, but I do know how to do them all in Go. I have an idea for a way to make it possible to write these in Go, with proper testing, isolation, and versioning. That's long term. As far as M365_BUILDER, I defer to @juliusrickert and would prefer documentation (rather than major changes) at this time. |
Closes #3185
Could you review and advise if this approach is the right way?
I've added a new example for
M365_BUILDER
, with all services enabled and using the newmxHost
parameter to point to an example DNSSEC enabled MX host.