Certified Ethical Hacker (CEH v11) — Question 172
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 because the '-t a' option specifies that the command should look up the A record, which maps a domain name to an IP address. The other options query for different types of DNS records: B queries for NS records (name servers), C for SOA records (start of authority), and D for AXFR (zone transfer), none of which provide the desired IP address.