What is an ALIAS record?
When can I use an ALIAS record?
You can use an ALIAS record when you want the "Apex" domain (without subdomains, i.e. example.com) to point to a hostname.
As with a CNAME record, this allows you to point to a hostname if your host doesn't provide you with a personalized IP address.
Important note:
As it is not possible to use a CNAME record on a "naked" domain, the ALIAS record is the solution to this problem.
Conditions:
For an ALIAS record to be valid:
there must be no existing A or AAAA records for the "Apex" (@) domain.
An ALIAS record will "break" DNSSEC on the "Apex" (@) domain, as @ A and @ AAAA responses will not have RRSIG records, which will break the resolution of all resolvers.
May I have an example?
@ 10800 IN ALIAS example.example.com.
ATTENTION don't forget the dot at the end (after the host address). If you forget it, the record won't work.