What is an ALIAS record?
DNS is like a phone book for the internet. It turns a website name into a number that computers understand. Each entry in the book is a record.
Sometimes you want your main domain, such as example.com, to follow another name, such as myshop.example-host.net. A CNAME record does this, but the rules do not let a CNAME sit on the main domain (the "root" or "apex").
An ALIAS record solves this. It acts like a CNAME on the root domain. The DNS service looks up the target name for you and returns its current IP address. Some services call this ANAME or "CNAME flattening".
Not every DNS service offers ALIAS records. Ask Hostvento support whether yours does.
Before you start
Edit DNS where your domain's nameservers point. Write down your current records before you change anything.
Add an ALIAS record
- Log in to the client area.
- Open the DNS settings for your domain.
- Click the button to add a new record.
- Set Type to ALIAS.
- In Name or Host, type
@for the root domain, or a name likewww. - In Target or Value, type the name you want to follow, for example
myshop.example-host.net. - Keep the default TTL. TTL is how long others may remember the answer.
- Click Save.
Edit or delete
- Find the ALIAS record in your list.
- Click Edit to change the target, then save.
- Click Delete to remove it.
Test it
Wait a few minutes, then run this command:
nslookup example.com
It should return the IP address of your target name.
www, a normal CNAME works fine. Use ALIAS mostly for the root domain.Quick recap
- An ALIAS record lets a root domain follow another name.
- It works like a CNAME, where CNAME is not allowed.
- Choose type ALIAS, use
@as the name, and enter the target. - Remove clashing A records first.
- Not all DNS services support it. Ask support if unsure.