WHAT ARE ANAME RECORDS?
ANAME records allow you to point the root of your domain to a hostname or FQDN (Fully Qualified Domain Name). They’re basically a CNAME record but at the root level.
How It Works
Before ANAME records were developed by DNS Made Easy, it was bad practice to use a CNAME record at the root. However, ANAME records operate differently from CNAME records. They are actually a combination of CNAME and A records.
Every hostname or FQDN will eventually resolve to an IP address. Constellix caches the IP address(es) that the hostname resolves to and creates A record(s) with it.
Those IP(s) are expected to change, so Constellix will continue to monitor where that hostname resolves to. When it changes, Constellix will automatically update the value of the A record(s) to match the new IP(s).
ANAME RECORD FIELDS
|A) Name||This is the host name for the record, typically a computer or server within your domain. Your domain name is automatically appended to the end of the “Name” field. For example, if you create a record with the name “www” the record would be defined as “www.example.com”. If the “Name” field is left blank, then it represents the root record of the domain. The root record for the base domain can also be referred to as the apex record and is represented using an @ symbol in some documentation.|
|B) TTL||The TTL (Time to Live) in seconds is the length of time the record will cache in resolving name servers and web browsers. The longer the TTL, then remote systems will lookup the DNS record less frequently. Your nameservers will also receive less query traffic since most queries are answered by resolving name servers. Conversely, the shorter the TTL the faster any changes you make to your DNS will propagate in servers that have cached data. However, your domain will receive more query traffic.
Records that are static and don’t change often should have TTL’s set between 1800 (being on the low end) to 86400 seconds (30 minutes to 1 day cache).
Records configured with Failover or that change often should have TTL’s set anywhere from 180 to 600 (3 to 10 minutes cache).
If a change is needed for a record with a high TTL, then the TTL can be lowered prior to making the change and then raised back up again after the changes were made.
|C) Record Mode||The Record Mode is how you enable settings like Failover, Record Pools, or Round Robin with Failover. You can read more about these settings here.|
|D) FQDN/Host||A Fully Qualified Domain Name or a host. This can point to another existing CNAME record in the domain, or another location external to the domain.|
|E) Notes||Add a helpful note with keywords so you can search for your records later.|
|F) Save||Save your record changes and don’t forget to commit your changes after you’re done making record changes for this domain!|
VIDEO TUTORIAL: HOW TO ADD, EDIT, AND DELETE RECORDS
Add an ANAME Record
4. In this screen, you will add the record information. Follow the steps below:
A) Name: This will be the hostname for your record and should be left blank to serve as the root of the record.
B) TTL: Edit the TTL. Time to Live is measured in seconds and is the amount of time the record will cache in resolving name servers and web browsers.
C) Record Mode: The Record Mode will be left at Standard for this tutorial. Please note, the other Record Mode options are covered in different tutorials.
D) FQDN/Host: Enter the destination host or Fully Qualified Domain Name you want to point to.
E) Note: Add a helpful note with keywords so you can search for your records later.
F) Save and Close: Save your changes. Don’t forget to commit your changes.