github.com/hexonet/dnscontrol@v0.2.8/docs/_functions/domain/MX.md (about)

     1  ---
     2  name: MX
     3  parameters:
     4    - name
     5    - priority
     6    - target
     7    - modifiers...
     8  ---
     9  
    10  MX adds an MX record to the domain.
    11  
    12  Priority should be a number.
    13  
    14  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 `.`.
    15  
    16  {% include startExample.html %}
    17  {% highlight js %}
    18  
    19  D("example.com", REGISTRAR, DnsProvider(R53),
    20    MX("@", 5, "mail"), // mx example.com -> mail.example.com
    21    MX("sub", 10, "mail.foo.com.")
    22  );
    23  
    24  {%endhighlight%}
    25  {% include endExample.html %}