Certified Ethical Hacker (CEH v10) — Question 152
Which of the following Linux commands will resolve a domain name into IP address?
Answer options
- A. >host-t a hackeddomain.com
- B. >host-t ns hackeddomain.com
- C. >host -t soa hackeddomain.com
- D. >host -t AXFR hackeddomain.com
Correct answer: A
Explanation
The correct answer is A, as the command 'host -t a' specifically queries for the A record, which provides the IP address associated with the domain. Options B, C, and D request other types of DNS records (NS, SOA, and AXFR respectively), which do not return the domain's IP address.