www A record set in example.com can contain two IPv4 addresses.
Names and restrictions
Use names relative to the selected zone:
A name and type identify one record set. Add multiple values to that set rather than creating a duplicate set.
- The apex NS set is platform managed and excluded from the editable record-set list. It cannot be created, edited, or deleted through record-set operations.
- CNAME records are rejected at the zone apex.
- A CNAME cannot coexist with another record type at the same name. Use one alias target rather than combining it with A, AAAA, MX, or TXT data at that name.
- A and AAAA values must be valid IPv4 and IPv6 addresses respectively.
- A record set needs at least one resource record with content. Disable individual records deliberately and verify the resulting answers.
Create an A record set
In the console, open the zone and create a record set. Choose Simple routing for ordinary website, mail, and verification records. For the API, use the zone ID returned when creating or listing zones. This example uses zone17; replace it with your own ID and replace the documentation addresses with your servers.
201 with the new id and an optional warning. Save the ID and review any warning, then verify authoritative answers.
The console offers TTLs from 120 through 86,400 seconds. A shorter TTL permits quicker changes after existing caches expire but increases authoritative query frequency.
Format record content
Each resource record has acontent array. For multi-field types, use the order shown below. Numeric fields are strings inside this array.
The CAA issuer and DS digest above are placeholders. Use the values supplied by your certificate authority or child-zone operator.
TXT content is the text value itself; do not add DNS presentation-format quotes around it in the JSON value. JSON still requires its normal string quotes and escaping. A hostname target has no URL scheme or path.
Read before updating
Listing a zone’s record sets returns their IDs and summary fields. Fetch the record values before making an update:ttl, resource_records, and any routing meta and pickers. An update replaces the TTL, routing settings, and resource-record collection. Preserve all values you still need.
This example intentionally replaces a simple A record set with one address and no routing metadata:
Verify the answer
Query both assigned nameservers after creating or updating a record:aa flag, expected values, and TTL. For mail or verification records, also query the relevant MX or TXT name.
A successful edit changes authoritative data. Recursive resolvers and clients can continue using a previous value until its earlier TTL expires. Deleting a record does not flush those caches.