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

     1  ---
     2  name: CNAME
     3  parameters:
     4    - name
     5    - target
     6    - modifiers...
     7  parameter_types:
     8    name: string
     9    target: string
    10    "modifiers...": RecordModifier[]
    11  ---
    12  
    13  CNAME adds a CNAME record to the domain. The name should be the relative label for the domain.
    14  Using `@` or `*` for CNAME records is not recommended, as different providers support them differently.
    15  
    16  Target should be a string representing the CNAME 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 `.`.
    17  
    18  {% code title="dnsconfig.js" %}
    19  ```javascript
    20  D("example.com", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER),
    21    CNAME("foo", "google.com."), // foo.example.com -> google.com
    22    CNAME("abc", "@"), // abc.example.com -> example.com
    23    CNAME("def", "test"), // def.example.com -> test.example.com
    24  END);
    25  ```
    26  {% endcode %}