Manage DNS records in Azure DNS
Each record in the domain name system includes the following properties:
- Name The name of the DNS record is combined with the name of the DNS zone to form the fully qualified domain name (FQDN). For example, the record “www” in zone “contoso.com” corresponds to the FQDN “www.contoso.com.”
- Type The type of DNS record determines what data is associated with the record and what purpose it is used for. A list of record types supported by Azure DNS is provided in Table 4-7.
- TTL The Time-to-Live (TTL) property tells recursive DNS servers how long a DNS record should be cached.
- RDATA The data returned for each DNS record. The type of data returned depends on the DNS record type. For example, an A record will return an IPv4 address, whereas a CNAME record returns another domain name.
The collection of records in a DNS zone with the same name and the same type is called a resource record set. (These collections are also referred to as “RRSets” and as “record sets” in Azure DNS). Records in Azure DNS are managed using record sets. Record sets are a child resource of the DNS zone and can contain up to 20 individual DNS records. The name, type, and TTL are config- ured on the record set, and the RDATA is configured on each DNS record within the record set.
To create a DNS record set at the root (or apex) of a DNS zone, use the record set name @. For example, the record set named @ in the contoso.com zone will resolve against queries for “contoso.com.” You can also use an asterisk (*) in the record set name to create wildcard records (subject to DNS wildcard matching rules).
Azure DNS supports all commonly used DNS record types. The full list of supported record types—together with a description of each—is provided in Table 4-7.
TABLE 4-7 DNS record types in Azure DNS
DNS Record Type | Remarks |
A | Used to map a name to an IPv4 address. |
AAAA | Used to map a name to an IPv6 address. |
CAA | Used to specify which certificate authorities can issue certificates for a domain. Note that CAA records are not currently available in the Azure portal, so they must be configured using the Azure CLI or Azure PowerShell. |