How to add records
After defining your Edge DNS main settings, you can add records to specify which IPs are associated with the domain and how Edge DNS should handle requests for the domain.
- Access Azion Console > Edge DNS.
- From the list, choose the Edge DNS zone in which you want to add records.
- Select the Records tab.
- Click the + Record button.
- In Name, provide the new record’s name.
- Depending on the type of record you want to use, there may exist specific formats and recommendations.
- In Record Type, select the type of record you want to add.
- Accepts the types
A
,AAAA
,ANAME
,CAA
,CNAME
,DS
,MX
,NS
,PTR
,SRV
, andTXT
.
- In Value, add the items for the DNS response to the registered record. The accepted values vary according to the chosen type of record.
- In TTL (seconds), choose the time, in seconds, that a response can be cached on a resolver server. Maximum value:
2147483647
. - In Policy, select between Simple or Weighted.
- If you select Weighted in Policy:
- In Weight, specify the weight for each record. Accepts values from
0
to255
. - In Description (optional), you can describe, for example, the distinction between records with the same Name and Type. Accepts up to 45 characters.
- In Weight, specify the weight for each record. Accepts values from
- Click the Save button.
- Access Real-Time Manager (RTM) > Edge DNS.
- From the list, choose the Edge DNS zone in which you want to add records.
- Select the Records tab.
- Click the Add Record button.
- In Name, provide the new record’s name.
- Depending on the type of record you want to use, there may exist specific formats and recommendations.
- In Type, select the type of record you want to add.
- Accepts the types
A
,AAAA
,ANAME
,CAA
,CNAME
,DS
,MX
,NS
,PTR
,SRV
, andTXT
.
- In Value, add the items for the DNS response to the registered record. The accepted values vary according to the chosen type of record.
- In TTL (seconds), choose the time, in seconds, that a response can be cached on a resolver server. Maximum value:
2147483647
. - In Policy, select between Simple or Weighted.
- If you select Weighted in Policy:
- In Weight, specify the weight for each record. Accepts values from
0
to255
. - In Description (optional), you can describe, for example, the distinction between records with the same Name and Type. Accepts up to 45 characters.
- In Weight, specify the weight for each record. Accepts values from
- 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 edge firewalls. 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.