A CNAME record is the canonical name for an alias. The Target Hostname field should contain the real name of the machine specified by Hostname. Target Hostname may be a hostname or an FQDN.
Example:
- store.example.com. (FQDN)
- store (hostname only)
The form contains the following fields:
• Hostname: The name that this record describes. Wildcard values such as * or *.sub are supported, and this field can contain an FQDN or just a hostname. If you specify an FQDN, the name must end with a dot; if you specify just a hostname, it must not end with a dot.
Examples:
- foo
- foo.example.com.
- www
- example.com.
- You can also leave the field empty which has the same meaning as if you'd fill in example.com.
• Target Hostname: The real name of the machine that the hostname in the Hostname field points to. Wildcard values such as * or *.sub are supported, and this field can contain an FQDN or just a hostname. If you specify an FQDN, the name must end with a dot; if you specify just a hostname, it must not end with a dot.
Examples:
- store
- store.example.com.
• TTL: The time interval (in seconds) that this record may be cached before the source of the information should again be consulted. Zero values are interpreted to mean that the record can only be used for the transaction in progress, and should not be cached.
• Active: This defines whether this CNAME record is active or not.
Rules:
❌ Not used for root domains (root @)
✔ Allowed in subdomains