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

     1  ---
     2  name: ALIAS
     3  parameters:
     4    - name
     5    - target
     6    - modifiers...
     7  parameter_types:
     8    name: string
     9    target: string
    10    "modifiers...": RecordModifier[]
    11  ---
    12  
    13  ALIAS is a virtual record type that points a record at another record. It is analogous to a CNAME, but is usually resolved at request-time and served as an A record. Unlike CNAMEs, ALIAS records can be used at the zone apex (`@`)
    14  
    15  Different providers handle ALIAS records differently, and many do not support it at all. Attempting to use ALIAS records with a DNS provider type that does not support them will result in an error.
    16  
    17  The name should be the relative label for the domain.
    18  
    19  Target should be a string representing the 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    ALIAS("@", "google.com."), // example.com -> google.com
    25  END);
    26  ```
    27  {% endcode %}