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.
Question
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)- A93% (13)
- D7% (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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.