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

     1  ---
     2  name: ALIAS
     3  parameters:
     4    - name
     5    - target
     6    - modifiers...
     7  ---
     8  
     9  ALIAS is a virtual record type that points a record at another record. It is analagous 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 (`@`)
    10  
    11  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.
    12  
    13  The name should be the relative label for the domain.
    14  
    15  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 `.`.
    16  
    17  {% include startExample.html %}
    18  {% highlight js %}
    19  
    20  D("example.com", REGISTRAR, DnsProvider("CLOUDFLARE"),
    21    ALIAS("@", "google.com."), // example.com -> google.com
    22  );
    23  
    24  {%endhighlight%}
    25  {% include endExample.html %}