github.com/StackExchange/dnscontrol/v4@v4.11.0/documentation/language-reference/domain-modifiers/M365_BUILDER.md (about)

     1  ---
     2  name: M365_BUILDER
     3  parameters:
     4    - label
     5    - mx
     6    - autodiscover
     7    - dkim
     8    - skypeForBusiness
     9    - mdm
    10    - domainGUID
    11    - initialDomain
    12  parameters_object: true
    13  parameter_types:
    14    label: string?
    15    mx: boolean?
    16    autodiscover: boolean?
    17    dkim: boolean?
    18    skypeForBusiness: boolean?
    19    mdm: boolean?
    20    domainGUID: string?
    21    initialDomain: string?
    22  ---
    23  
    24  DNSControl offers a `M365_BUILDER` which can be used to simply set up Microsoft 365 for a domain in an opinionated way.
    25  
    26  It defaults to a setup without support for legacy Skype for Business applications.
    27  It doesn't set up SPF or DMARC. See [`SPF_BUILDER`](SPF_BUILDER.md) and [`DMARC_BUILDER`](DMARC_BUILDER.md).
    28  
    29  ## Example
    30  
    31  ### Simple example
    32  
    33  {% code title="dnsconfig.js" %}
    34  ```javascript
    35  M365_BUILDER({
    36      initialDomain: "example.onmicrosoft.com",
    37  });
    38  ```
    39  {% endcode %}
    40  
    41  This sets up `MX` records, Autodiscover, and DKIM.
    42  
    43  ### Advanced example
    44  
    45  {% code title="dnsconfig.js" %}
    46  ```javascript
    47  M365_BUILDER({
    48      label: "test",
    49      mx: false,
    50      autodiscover: false,
    51      dkim: false,
    52      mdm: true,
    53      domainGUID: "test-example-com", // Can be automatically derived in this case, if example.com is the context.
    54      initialDomain: "example.onmicrosoft.com",
    55  });
    56  ```
    57  {% endcode %}
    58  
    59  This sets up Mobile Device Management only.
    60  
    61  ### Parameters
    62  
    63  * `label` The label of the Microsoft 365 domain, useful if it is a subdomain (default: `"@"`)
    64  * `mx` Set an `MX` record? (default: `true`)
    65  * `autodiscover` Set Autodiscover `CNAME` record? (default: `true`)
    66  * `dkim` Set DKIM `CNAME` records? (default: `true`)
    67  * `skypeForBusiness` Set Skype for Business/Microsoft Teams records? (default: `false`)
    68  * `mdm` Set Mobile Device Management records? (default: `false`)
    69  * `domainGUID` The GUID of _this_ Microsoft 365 domain (default: `<label>.<context>` with `.` replaced by `-`, no default if domain contains dashes)
    70  * `initialDomain` The initial domain of your Microsoft 365 tenant/account, ends in `onmicrosoft.com`