Certified Ethical Hacker CEH · Free Practice Question Easy
Question 19
Which of the following Linux commands is used to map a domain name to their corresponding IP address?
- A A. Host -t a example.com
- B B. Host -t b example.com
- C C. Host -t c example.com
- D D. Host -t d example.com
Reveal correct answer
Correct answer: A
Explanation
Correct Answer: A. host -t a example.com Example: The "host" command is a Linux tool used for DNS queries. The "-t a" option specifies the DNS record type as an "A" record, which maps a domain name to an IP address. When used with the domain name, the command returns the IP address associated with the domain name. The options "-t b", "-t c", and "-t d" specify other types of DNS records such as "CNAME", "SOA", and "SRV" records respectively, which are used for different purposes in DNS.Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
