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.

go to add records guide

For this guide, assume you’re configuring a record for a zone with the root domain.

  1. Follow the general steps described in the How to add records guide.
  2. In Name, leave it blank. This way, you’ll use your root domain,
  3. In the Type dropdown menu, select ANAME.
  4. In Value, add the IP addresses you want to make available through the root domain. Must be in FQDN format. Example:
  5. Choose the type of Policy: Simple or Weighted.
  6. Click the Save button.

  1. Run the following GET request in your terminal, replacing [TOKEN VALUE] with your personal token to retrieve your <hosted_zone_id>:
Terminal window
curl --location '' \
--header 'Authorization: Token [TOKEN VALUE]' \
--header 'Accept: application/json; version=3'
  1. You’ll receive a response with all your existing zones. Copy the value of the <id> that you want to use.
  2. Run the following POST request, replacing [TOKEN VALUE] with your personal token and the <hosted_zone_id> value you copied:
Terminal window
curl --location '<hosted_zone_id>/records' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token [TOKEN VALUE]' \
--header 'Accept: application/json; version=3' \
--data-raw '{
"record_type": "ANAME",
"answers_list": [
"ttl": 20
  1. You’ll receive a response similar to this:
"results": {
"answers_list": [
"zone_id": 1234,
"record_type": "ANAME",
"ttl": 0,
"policy": "simple",
"entry": "",
"id": 12345,
"description": ""
"schema_version": 3

Wait a few minutes for the changes to propagate and your records will be created in the hosted zone you chose.