nerdexam
EC-Council

312-50V13 · Question #58

Which of the following Linux commands will resolve a domain name into IP address?

The correct answer is A. >host-t a hackeddomain.com. The host command with the -t a option is used in Linux to query for the A record of a domain, which resolves the domain name to its IPv4 address.

Submitted by luis.pe· Mar 6, 2026Footprinting and Reconnaissance

Question

Which of the following Linux commands will resolve a domain name into IP address?

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

How the community answered

(14 responses)
  • A
    93% (13)
  • D
    7% (1)

Why each option

The `host` command with the `-t a` option is used in Linux to query for the A record of a domain, which resolves the domain name to its IPv4 address.

A>host-t a hackeddomain.comCorrect

The `host` command is a standard Linux utility for performing DNS lookups. The `-t a` option specifically instructs `host` to query for the 'A' record (Address record), which maps a domain name to an IPv4 address, effectively resolving the domain name to its IP.

B>host-t ns hackeddomain.com

The `host -t ns` command queries for the Name Server (NS) records, which list the authoritative DNS servers for a domain, not its IP address.

C>host -t soa hackeddomain.com

The `host -t soa` command queries for the Start of Authority (SOA) record, which provides administrative information about the zone, not the domain's IP address.

D>host -t AXFR hackeddomain.com

The `host -t AXFR` command attempts a full zone transfer, which is used to replicate DNS zone data between servers and is generally restricted for security reasons, not to simply resolve a domain's IP.

Concept tested: DNS resolution Linux command

Source: https://www.redhat.com/sysadmin/host-command-linux

Topics

#DNS lookup#host command#Linux commands#reconnaissance tools

Community Discussion

No community discussion yet for this question.

Full 312-50V13 Practice