Networking

Which DNS record type maps a hostname to an IPv4 address?

Show the answer

Correct answerA. A

AWhy this is right: An A record maps a hostname to a 32-bit IPv4 address.

BWhy not this: AAAA records hold 128-bit IPv6 addresses, not IPv4 addresses.

CWhy not this: CNAME makes one name an alias of another name; it does not hold an address.

DWhy not this: MX names the mail servers for a domain; it does not return a host's address.

An A record maps a hostname to a 32-bit IPv4 address. AAAA is the tempting alternative, but it holds 128-bit IPv6 addresses instead.