nslookup

The
nslookup
command is used to obtain the IP address associated with a given hostname using the DNS server

Syntax

nslookup <hostname>
  • <hostname>
    : Specifies the hostname to obtain the IP address of.

Example

nslookup server.local
DNS request sent for server.local... DNS request successful: 192.168.1.120
`