How to access addresses through a root domain (ANAME)
You can configure your Edge DNS to allow access to an address through its root domain, also known as naked domain or apex domain, by using an ANAME record.
For this guide, assume you’re configuring a record for a zone with the domain.com
root domain.
- Follow the general steps described in the How to add records guide.
- In Name, enter
@
. This way, you’ll use your root domain,domain.com
. - In the Record Type dropdown menu, select ANAME.
- In Value, add the IP addresses you want to make available through the root domain. Must be in FQDN format. Example:
32082s.map.azionedge.net
- Choose the type of Policy: Simple or Weighted.
- Click the Save button.
- Follow the general steps described in the How to add records guide.
- In Name, enter
@
or leave it blank. This way, you’ll use your root domain,domain.com
. - In the Type dropdown menu, select ANAME.
- In Value, add the IP addresses you want to make available through the root domain. Must be in FQDN format. Example:
32082s.map.azionedge.net
- Choose the type of Policy: Simple or Weighted.
- Click the Save button.
- Run the following
GET
request in your terminal, replacing[TOKEN VALUE]
with your personal token to retrieve your<hosted_zone_id>
:
- You’ll receive a response with all your existing zones. Copy the value of the
<id>
that you want to use. - Run the following
POST
request, replacing[TOKEN VALUE]
with your personal token and the<hosted_zone_id>
value you copied:
- You’ll receive a response similar to this:
Wait a few minutes for the changes to propagate and your records will be created in the hosted zone you chose.