Which DNS record would you use to alias one domain to another?

Prepare for the Certified Ethical Hacker Version 11 Exam. Study with comprehensive questions and explanations. Equip yourself with the skills needed for success!

Multiple Choice

Which DNS record would you use to alias one domain to another?

Explanation:
A CNAME record is used to create an alias from one domain name to another. When a client looks up the alias, DNS responds with the canonical domain name, and the resolver then fetches that domain’s A or AAAA records to obtain the actual IP address. This lets you have multiple domain names point to the same destination without duplicating IPs. For example, you can set www.example.com to alias example.com, so both resolve to the same site. This is the appropriate choice for aliasing because other common records serve different purposes: an A record maps a name directly to an IP address; a PTR record is used for reverse lookups (IP to domain); and NS records specify which servers handle the DNS for a zone. Remember, CNAME is best for aliasing names to another domain, not for mapping to an IP address directly or for zone management tasks.

A CNAME record is used to create an alias from one domain name to another. When a client looks up the alias, DNS responds with the canonical domain name, and the resolver then fetches that domain’s A or AAAA records to obtain the actual IP address. This lets you have multiple domain names point to the same destination without duplicating IPs. For example, you can set www.example.com to alias example.com, so both resolve to the same site.

This is the appropriate choice for aliasing because other common records serve different purposes: an A record maps a name directly to an IP address; a PTR record is used for reverse lookups (IP to domain); and NS records specify which servers handle the DNS for a zone. Remember, CNAME is best for aliasing names to another domain, not for mapping to an IP address directly or for zone management tasks.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy