DNS Records: Alias Records | CompTIA Network+ Exam N10-007 | Provider: CompTIA

Alias Records

Prev Question Next Question

Question

Which of the following DNS records works as an alias to another record?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.

The correct answer is B. CNAME.

CNAME stands for Canonical Name and it is a type of DNS record that maps an alias or nickname to the true or canonical name of a domain. In other words, a CNAME record works as an alias to another record, allowing multiple domain names to point to the same IP address or hostname.

For example, let's say you have a website called "example.com" and you also want to create a subdomain called "blog.example.com" that points to the same IP address as the main domain. Instead of creating a separate A record for the subdomain, you can create a CNAME record that points "blog.example.com" to "example.com". This way, any requests for "blog.example.com" will be automatically redirected to "example.com".

Here's an example of what a CNAME record might look like in a DNS zone file:

objectivec
blog.example.com. IN CNAME example.com.

In this example, the CNAME record maps "blog.example.com" to "example.com".

To summarize, the CNAME DNS record is used to create an alias for an existing DNS record, allowing multiple domain names to point to the same IP address or hostname.