DNS Records
All of these are placed in a zone file, which is discussed further in “Setting Up a DNS Server with BIND.” There are several ways to define the IP/hostname. Some of these DNS records are optional. Many can have multiple entries. The most critical and commonly used ones are listed here, but there are many more available. See https://en.wikipedia.org/wiki/List_of_DNS_record_types for more information.
A
The A record maps a hostname to a 32-bit IPv4 address, as in this example:
example.com IN A 192.0.2.0
The hostname comes first. IN indicates Internet. A indicates that this is an A record. The IPv4 address address comes last.
AAAA
The AAAA record maps a hostname to a 128-bit IPv6 address, as in this example:
example.com AAAA 2001:db8::/32 ...
Get Ubuntu Unleashed 2015 Edition: Covering 14.10 and 15.04, Tenth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.