Final answer:
To find the IP address of a hostname, a network technician can use the nslookup command. Alternatively, the ping command could provide the IP address if the hostname is responding to requests.
Step-by-step explanation:
To determine the IP address assigned to a hostname that has been identified as the source of an attack within a company, a network technician can use the command nslookup. This command allows the user to query the Domain Name System (DNS) to obtain the domain name or IP address mapping for any specific DNS record. The ping command could also be used to resolve a hostname to an IP address by sending out ICMP packets and could indirectly provide the IP address if the hostname is reachable and responding to ping requests. It is important to note that tracert (or traceroute on Linux/Unix) could also resolve the hostname as it shows the path packets take to reach a destination but is primarily used for diagnostics, and ipconfig is used to display the current network adapter settings and is not used for resolving hostnames to IP addresses.