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

     1  ---
     2  name: MX
     3  parameters:
     4    - name
     5    - priority
     6    - target
     7    - modifiers...
     8  parameter_types:
     9    name: string
    10    priority: number
    11    target: string
    12    "modifiers...": RecordModifier[]
    13  ---
    14  
    15  MX adds an MX record to the domain.
    16  
    17  Priority should be a number.
    18  
    19  Target should be a string representing the MX target. If it is a single label we will assume it is a relative name on the current domain. If it contains *any* dots, it should be a fully qualified domain name, ending with a `.`.
    20  
    21  {% code title="dnsconfig.js" %}
    22  ```javascript
    23  D("example.com", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER),
    24    MX("@", 5, "mail"), // mx example.com -> mail.example.com
    25    MX("sub", 10, "mail.foo.com."),
    26  END);
    27  ```
    28  {% endcode %}